]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.8.4/macvlan-set-iff_unicast_flt-flag-to-prevent-unnecessary-promisc-mode.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 3.8.4 / macvlan-set-iff_unicast_flt-flag-to-prevent-unnecessary-promisc-mode.patch
1 From 055ac17d92eee5e96bb207f2a4d7da92ac64a690 Mon Sep 17 00:00:00 2001
2 From: Vlad Yasevich <vyasevic@redhat.com>
3 Date: Thu, 7 Mar 2013 10:21:48 +0000
4 Subject: macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode.
5
6
7 From: Vlad Yasevich <vyasevic@redhat.com>
8
9 [ Upstream commit 87ab7f6f2874f1115817e394a7ed2dea1c72549e ]
10
11 Macvlan already supports hw address filters. Set the IFF_UNICAST_FLT
12 so that it doesn't needlesly enter PROMISC mode when macvlans are
13 stacked.
14
15 Signed-of-by: Vlad Yasevich <vyasevic@redhat.com>
16 Signed-off-by: David S. Miller <davem@davemloft.net>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 ---
19 drivers/net/macvlan.c | 1 +
20 1 file changed, 1 insertion(+)
21
22 --- a/drivers/net/macvlan.c
23 +++ b/drivers/net/macvlan.c
24 @@ -628,6 +628,7 @@ void macvlan_common_setup(struct net_dev
25 ether_setup(dev);
26
27 dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING);
28 + dev->priv_flags |= IFF_UNICAST_FLT;
29 dev->netdev_ops = &macvlan_netdev_ops;
30 dev->destructor = free_netdev;
31 dev->header_ops = &macvlan_hard_header_ops,