diff options
author | Taehee Yoo <ap420073@gmail.com> | 2019-10-21 20:47:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-24 23:53:49 +0200 |
commit | f3b0a18bb6cb07a9abb75e21b1f08eeaefa78e81 (patch) | |
tree | b5d636880dabed79068264b444e1cf785ad1cc45 /net/8021q/vlan.c | |
parent | vxlan: add adjacent link to limit depth level (diff) | |
download | linux-f3b0a18bb6cb07a9abb75e21b1f08eeaefa78e81.tar.xz linux-f3b0a18bb6cb07a9abb75e21b1f08eeaefa78e81.zip |
net: remove unnecessary variables and callback
This patch removes variables and callback these are related to the nested
device structure.
devices that can be nested have their own nest_level variable that
represents the depth of nested devices.
In the previous patch, new {lower/upper}_level variables are added and
they replace old private nest_level variable.
So, this patch removes all 'nest_level' variables.
In order to avoid lockdep warning, ->ndo_get_lock_subclass() was added
to get lockdep subclass value, which is actually lower nested depth value.
But now, they use the dynamic lockdep key to avoid lockdep warning instead
of the subclass.
So, this patch removes ->ndo_get_lock_subclass() callback.
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r-- | net/8021q/vlan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 54728d2eda18..d4bcfd8f95bf 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -172,7 +172,6 @@ int register_vlan_dev(struct net_device *dev, struct netlink_ext_ack *extack) if (err < 0) goto out_uninit_mvrp; - vlan->nest_level = dev_get_nest_level(real_dev) + 1; err = register_netdevice(dev); if (err < 0) goto out_uninit_mvrp; |