]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Reduce scope of router struct
authorIdo Schimmel <idosch@mellanox.com>
Tue, 16 May 2017 17:38:25 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:06:54 +0000 (14:06 -0400)
commit17861ca9bb822c1c33400760a5df231293a88c34
tree63574bd5e80dd51f51cc65b3cff116afca754b6c
parent213d718d4fa4c9d5934b909e650d736dab49e3b7
mlxsw: spectrum_router: Reduce scope of router struct

In a similar fashion to previous patch, the router structure
('mlxsw_sp_router') doesn't need to be accessible to anyone, but the
router code located at spectrum_router.c

Make this apparent and reduce its scope by defining it there.

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.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c