]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: Allow setting multicast filter on all macvlan types
authorVlad Yasevich <vyasevic@redhat.com>
Fri, 15 Aug 2014 17:04:59 +0000 (13:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Aug 2014 23:54:25 +0000 (16:54 -0700)
commit926dd51f77fe0aba0e6240c1b7e1792bd1c4d67c
tree0f31a7bde805088a72152407f43ab9b34b8213a4
parent8af446741a314e8dbe61051275b35c9334364b84
macvlan: Allow setting multicast filter on all macvlan types

Currently, macvlan code restricts multicast and unicast
filter setting only to passthru devices.  As a result,
if a guest using macvtap wants to receive multicast
traffic, it has to set IFF_ALLMULTI or IFF_PROMISC.

This patch makes it possible to use the fdb interface
to add multicast addresses to the filter thus allowing
a guest to receive only targeted multicast traffic.

CC: John Fastabend <john.r.fastabend@intel.com>
CC: Michael S. Tsirkin <mst@redhat.com>
CC: Jason Wang <jasowang@redhat.com>
Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c