summaryrefslogtreecommitdiff
path: root/drivers/net/vrf.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-06-09 17:45:13 +0300
committerDavid S. Miller <davem@davemloft.net>2016-06-09 23:28:37 +0300
commit78e7a2ae872770e5f26bf794b97b7b8e3e30ccfd (patch)
treefef1f5de46d813e0b0bb6ca2fd7a86cfe6baaf38 /drivers/net/vrf.c
parentd3fff6c443fe8f8a5ef2bdcea45e2ff39db948c7 (diff)
downloadlinux-78e7a2ae872770e5f26bf794b97b7b8e3e30ccfd.tar.xz
net: vrf: call netdev_lockdep_set_classes()
In case a qdisc is used on a vrf device, we need to use different lockdep classes to avoid false positives. Use the new netdev_lockdep_set_classes() generic helper. Reported-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Tested-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vrf.c')
-rw-r--r--drivers/net/vrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index e3e693bf0dec..b82e3527924e 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -661,7 +661,7 @@ static int vrf_dev_init(struct net_device *dev)
/* similarly, oper state is irrelevant; set to up to avoid confusion */
dev->operstate = IF_OPER_UP;
-
+ netdev_lockdep_set_classes(dev);
return 0;
out_rth: