Commit 5c70ef85a2f26d8a0e1aaa7b4cbfff44fda36585

Authored by Gao feng
Committed by David S. Miller
1 parent b68656b22f

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>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

... ... @@ -188,6 +188,11 @@
188 188 return tot;
189 189 }
190 190  
  191 +/* fake multicast ability */
  192 +static void veth_set_multicast_list(struct net_device *dev)
  193 +{
  194 +}
  195 +
191 196 static int veth_open(struct net_device *dev)
192 197 {
193 198 struct veth_priv *priv = netdev_priv(dev);
... ... @@ -250,6 +255,7 @@
250 255 .ndo_start_xmit = veth_xmit,
251 256 .ndo_change_mtu = veth_change_mtu,
252 257 .ndo_get_stats64 = veth_get_stats64,
  258 + .ndo_set_rx_mode = veth_set_multicast_list,
253 259 .ndo_set_mac_address = eth_mac_addr,
254 260 };
255 261