]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
commita759ab6dacd0dd8e27f60f19bb92c2201db213fb
tree94919d2ddeb333521b4857a38e8243c6b5c213cd
parent28b1987ef5064dd5c43538ba1168ef7b801f3cad
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