summaryrefslogtreecommitdiffstats
path: root/drivers/net/veth.c
diff options
context:
space:
mode:
authorGao feng <gaofeng@cn.fujitsu.com>2013-10-04 16:52:24 +0800
committerDavid S. Miller <davem@davemloft.net>2013-10-10 00:08:07 -0400
commit5c70ef85a2f26d8a0e1aaa7b4cbfff44fda36585 (patch)
treea4bae6df0f84df6b74e4b3f27fbfbf7bc7c0b92e /drivers/net/veth.c
parentb68656b22fd7a3e03087c11b2b45c15c0b328609 (diff)
downloadtalos-obmc-linux-5c70ef85a2f26d8a0e1aaa7b4cbfff44fda36585.tar.gz
talos-obmc-linux-5c70ef85a2f26d8a0e1aaa7b4cbfff44fda36585.zip
veth: allow to setup multicast address for veth device
We can only setup multicast address for network device when net_device_ops->ndo_set_rx_mode is not null. Some configurations need to add multicast address for net device, such as netfilter cluster match module. Add a fake ndo_set_rx_mode function to allow this operation. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r--drivers/net/veth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index eee1f19ef1e9..b2d034791e15 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -188,6 +188,11 @@ static struct rtnl_link_stats64 *veth_get_stats64(struct net_device *dev,
return tot;
}
+/* fake multicast ability */
+static void veth_set_multicast_list(struct net_device *dev)
+{
+}
+
static int veth_open(struct net_device *dev)
{
struct veth_priv *priv = netdev_priv(dev);
@@ -250,6 +255,7 @@ static const struct net_device_ops veth_netdev_ops = {
.ndo_start_xmit = veth_xmit,
.ndo_change_mtu = veth_change_mtu,
.ndo_get_stats64 = veth_get_stats64,
+ .ndo_set_rx_mode = veth_set_multicast_list,
.ndo_set_mac_address = eth_mac_addr,
};
OpenPOWER on IntegriCloud