net: core: introduce struct netdev_nested_priv for nested interface infrastructure
authorTaehee Yoo <ap420073@gmail.com>
Fri, 25 Sep 2020 18:13:12 +0000 (18:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2020 22:00:15 +0000 (15:00 -0700)
commiteff7423365a6938d2d34dbce989febed2ae1f957
tree3f61c00999e4383020b4c6f9a2669f315dbcdd3d
parentfe8300fd8d655ebc6b6297565665959d6d7bbe02
net: core: introduce struct netdev_nested_priv for nested interface infrastructure

Functions related to nested interface infrastructure such as
netdev_walk_all_{ upper | lower }_dev() pass both private functions
and "data" pointer to handle their own things.
At this point, the data pointer type is void *.
In order to make it easier to expand common variables and functions,
this new netdev_nested_priv structure is added.

In the following patch, a new member variable will be added into this
struct to fix the lockdep issue.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 files changed:
drivers/infiniband/core/cache.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/roce_gid_mgmt.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
drivers/net/ethernet/rocker/rocker_main.c
drivers/net/wireless/quantenna/qtnfmac/core.c
include/linux/netdevice.h
net/bridge/br_arp_nd_proxy.c
net/bridge/br_vlan.c
net/core/dev.c