mlxsw: spectrum: Set port's shared buffer size to 0
authorIdo Schimmel <idosch@mellanox.com>
Wed, 6 Apr 2016 15:10:05 +0000 (17:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2016 21:24:17 +0000 (17:24 -0400)
commitd6b7c13b018f1785743150f079638bb3ed69fff1
tree7d3d35a5ffee768b55c896268025ed8e40b07368
parent7ad7cd6113bacace67c55cadef6459eb0e74403d
mlxsw: spectrum: Set port's shared buffer size to 0

In addition to the priority group (PG) buffers in the headroom, the
device enables the allocation of headroom shared buffer, which can
be shared between different PGs.

However, we are not going to use the headroom shared buffer and instead
allow the user to use its size for PGs or the switch's shared buffer.

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