]> 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)
commitdbd0bddc0195b3cf0e1828760be2a637648465da
tree2180396f92d71d931017132e8ff354921221d57b
parent1a4f8da926fcf7603d03c08aba27f5c15a51ce92
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