]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove unnecessary variables and callback
authorTaehee Yoo <ap420073@gmail.com>
Mon, 21 Oct 2019 18:47:58 +0000 (18:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Oct 2019 21:53:49 +0000 (14:53 -0700)
commite4eef209012a0b67a86622927bfe69ce10b0e269
treeb5d636880dabed79068264b444e1cf785ad1cc45
parentb70fe411b5b5c8b3e110d2be5e53b928e89decfd
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>
15 files changed:
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/macsec.c
drivers/net/macvlan.c
include/linux/if_macvlan.h
include/linux/if_vlan.h
include/linux/netdevice.h
include/net/bonding.h
net/8021q/vlan.c
net/8021q/vlan_dev.c
net/core/dev.c
net/core/dev_addr_lists.c
net/smc/smc_core.c
net/smc/smc_pnet.c