]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Move the ECN-marked packet counter to ethtool
authorPetr Machata <petrm@mellanox.com>
Wed, 26 Feb 2020 08:39:18 +0000 (09:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:44:42 +0000 (20:44 -0800)
commitc6a982975b5ff409bff0b93a1ae9668ce3758d0e
tree2180396f92d71d931017132e8ff354921221d57b
parented5df16108855d7209ed53c4b613becc7bc7d052
mlxsw: spectrum: Move the ECN-marked packet counter to ethtool

Spectrum-1 and Spectrum-2 do not have a per-TC counter of number of packets
marked by ECN. The value reported currently is the total number of marked
packets. Showing this value at individual TC Qdiscs is misleading.

Move the counter to ethtool instead.

Signed-off-by: Petr Machata <petrm@mellanox.com>
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/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c