Patchwork [3.5.y.z,extended,stable] Patch "macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary" has been added to staging queue

mail settings
Submitter Luis Henriques
Date March 20, 2013, 10:44 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/229336/
State New
Headers show


Luis Henriques - March 20, 2013, 10:44 a.m.
This is a note to let you know that I have just added a patch titled

    macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From dd8d056d91954eaf7953f6c7c8095fe02cecbabe Mon Sep 17 00:00:00 2001
From: Vlad Yasevich <>
Date: Thu, 7 Mar 2013 10:21:48 +0000
Subject: [PATCH] macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary
 promisc mode.

commit 87ab7f6f2874f1115817e394a7ed2dea1c72549e upstream.

Macvlan already supports hw address filters.  Set the IFF_UNICAST_FLT
so that it doesn't needlesly enter PROMISC mode when macvlans are

Signed-of-by: Vlad Yasevich <>

Signed-off-by: David S. Miller <>
Signed-off-by: Luis Henriques <>
 drivers/net/macvlan.c | 1 +
 1 file changed, 1 insertion(+)



diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 62ce7b8..666fc20 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -628,6 +628,7 @@  void macvlan_common_setup(struct net_device *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,