]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mlxsw: spectrum_switchdev: Reduce scope of bridge struct
authorIdo Schimmel <idosch@mellanox.com>
Tue, 16 May 2017 17:38:26 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:06:54 +0000 (14:06 -0400)
commit5f6935c6a4eafd853489c70d6ef3250296a4d534
treec88858a61e78795559f6957b7bf383500704485d
parent9011b677e7564ebd27e0bd8379ddd9d1649106b4
mlxsw: spectrum_switchdev: Reduce scope of bridge struct

Some attributes in the global chip struct are only relevant for bridge
operation, so encapsulate them in their own struct that isn't exposed to
non-bridge code.

This will also help us later, when we add more bridge-specific
attributes.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c