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)
commit9011b677e7564ebd27e0bd8379ddd9d1649106b4
tree63574bd5e80dd51f51cc65b3cff116afca754b6c
parent33cbd87cc0099b3287cb24dc88b9c9abdedccd1e
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