]> git.baikalelectronics.ru Git - kernel.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)
commit213d718d4fa4c9d5934b909e650d736dab49e3b7
tree4562a9324ee66b2aa757d8e8c155f799b8451794
parentecb2b344adb5768895302cbbee633eb70e586fa9
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