mlxsw: spectrum_buffers: Implement shared buffer configuration
authorJiri Pirko <jiri@mellanox.com>
Thu, 14 Apr 2016 16:19:24 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:22:05 +0000 (16:22 -0400)
commit0f433fa0ecc59c1d0792937a26436bec8dd42b6d
tree67526f7aeaabf0bc092a1744c62073766975d57b
parent325f2f197d730bb7f6f1af2ce93fedfd728e3eed
mlxsw: spectrum_buffers: Implement shared buffer configuration

Implement previously introduced mlxsw core shared buffer API.
For Spectrum, that is done utilizing registers SBPR, SBCM and SBPM.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@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_buffers.c