In case a qdisc is used on a macvlan device, we need to use different
lockdep classes to avoid false positives.
Fixes: f9eb8aea2a1e ("net_sched: transform qdisc running bit into a seqcount")
Fixes: 79640a4ca695 ("net: add additional lock to qdisc to increase throughput")
Signed-off-by: Eric Dumazet <[email protected]>
---
drivers/net/macvlan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 0c65bd914aed..b0c6f5b43f67 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -823,6 +823,7 @@ static void macvlan_set_lockdep_class(struct net_device
*dev)
&macvlan_netdev_addr_lock_key,
macvlan_get_nest_level(dev));
netdev_for_each_tx_queue(dev, macvlan_set_lockdep_class_one, NULL);
+ netdev_lockdep_set_classes(dev);
}
static int macvlan_init(struct net_device *dev)
--
2.8.0.rc3.226.g39d4020