]> git.baikalelectronics.ru Git - kernel.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)
commitff52b638f6a048d9d3afd6a8158d213e95d41fc7
tree94919d2ddeb333521b4857a38e8243c6b5c213cd
parentdaa4ff70749a4354e72749517eb27c6ccc7c50b0
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