mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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>
This commit is contained in:
parent
d3fff6c443
commit
78e7a2ae87
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue