net: vrf: call netdev_lockdep_set_classes()
authorEric Dumazet <edumazet@google.com>
Thu, 9 Jun 2016 14:45:13 +0000 (07:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2016 20:28:37 +0000 (13:28 -0700)
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>
drivers/net/vrf.c

index e3e693bf0dec344fd83469cf2ce04797c3bc3cee..b82e3527924e6a330953e462c075a09051b33a34 100644 (file)
@@ -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: