mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared buffer
authorShalom Toledo <shalomt@mellanox.com>
Mon, 16 Sep 2019 15:04:22 +0000 (18:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2019 20:07:59 +0000 (22:07 +0200)
commit5042d91dae1ef1e0af61f69da321586b0689c881
tree94919d2ddeb333521b4857a38e8243c6b5c213cd
parent62eda9546af3b449ff9c8e7c1c3abd24e9fafb57
mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared buffer

While debugging packet loss towards the CPU, it is useful to be able to
query the CPU port's shared buffer quotas and occupancy.

Since the CPU port has no ingress buffers, all the shared buffers ingress
information will be cleared.

Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c