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

Luis Henriques luis.henriques at canonical.com
Wed Mar 20 10:44:06 UTC 2013

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:


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 <vyasevic at redhat.com>
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 <vyasevic at redhat.com>

Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
 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,

More information about the kernel-team mailing list