]> git.baikalelectronics.ru Git - kernel.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)
commit196c09c3e2c6120c452e5e169eabb8ef1fd41800
treec88858a61e78795559f6957b7bf383500704485d
parent17861ca9bb822c1c33400760a5df231293a88c34
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