]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mlxsw: spectrum_buffer: Reduce scope of shared buffer struct
authorIdo Schimmel <idosch@mellanox.com>
Tue, 16 May 2017 17:38:24 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:06:54 +0000 (14:06 -0400)
commit33cbd87cc0099b3287cb24dc88b9c9abdedccd1e
tree4562a9324ee66b2aa757d8e8c155f799b8451794
parent29db39841896de99dcb3b1deaed61a13cb9d8036
mlxsw: spectrum_buffer: Reduce scope of shared buffer struct

The shared buffer structure ('mlxsw_sp_sb') doesn't need to be
accessible to anyone, but the shared buffer code located at
spectrum_buffers.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_buffers.c