netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode.
@ 2013-03-07 20:21 Vlad Yasevich
  2013-03-07 20:27 ` Ben Greear
  2013-03-07 21:37 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Vlad Yasevich @ 2013-03-07 20:21 UTC (permalink / raw)
  To: netdev; +Cc: Vlad Yasevich

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 <vyasevic@redhat.com>
---
 drivers/net/macvlan.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 417b2af..73abbc1 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -660,6 +660,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,
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-07 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 20:21 [PATCH] macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode Vlad Yasevich
2013-03-07 20:27 ` Ben Greear
2013-03-07 20:32   ` Vlad Yasevich
2013-03-07 20:43     ` Vlad Yasevich
2013-03-07 21:37 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).