From: Vlad Yasevich Date: Thu, 7 Mar 2013 10:21:48 +0000 (+0000) Subject: macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode. X-Git-Tag: v3.4.37~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e86429f5b4367734a4df8ffa46212d64934c310c;p=thirdparty%2Fkernel%2Fstable.git macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode. [ Upstream commit 87ab7f6f2874f1115817e394a7ed2dea1c72549e ] Macvlan already supports hw address filters. Set the IFF_UNICAST_FLT so that it doesn't needlesly enter PROMISC mode when macvlans are stacked. Signed-of-by: Vlad Yasevich Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 025367a94add3..956a5ed879013 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -584,6 +584,7 @@ void macvlan_common_setup(struct net_device *dev) ether_setup(dev); dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); + dev->priv_flags |= IFF_UNICAST_FLT; dev->netdev_ops = &macvlan_netdev_ops; dev->destructor = free_netdev; dev->header_ops = &macvlan_hard_header_ops,