mlxsw: spectrum: Expose per-tc counters via ethtool
authorIdo Schimmel <idosch@mellanox.com>
Tue, 19 Jul 2016 13:35:54 +0000 (15:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 21:53:56 +0000 (14:53 -0700)
commitdf4750e84e95acfbe243c174a1e3eff54377b506
treed597b58ade200eaeda7ec023efb2fd3f0a68da87
parent7ed674bc3cb10d5cd06a52365a6d3f54827cc4cb
mlxsw: spectrum: Expose per-tc counters via ethtool

Expose the transmit queue length of each traffic class and the amount of
unicast packets discarded due to insufficient room in the shared buffer.

The first counter allows us to debug user priority to traffic class
mapping, whereas the drop counter is useful when determining shared buffer
configuration.

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.c