1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox
Petr Machata 85005b82e5 mlxsw: spectrum_qdisc: Include MC TCs in Qdisc counters
mlxsw configures Spectrum in such a way that BUM traffic is passed not
through its nominal traffic class TC, but through its MC counterpart TC+8.
However, when collecting statistics, Qdiscs only look at the nominal TC and
ignore the MC TC.

Add two helpers to compute the value for logical TC from the constituents,
one for backlog, the other for tail drops. Use them throughout instead of
going through the xstats pointer directly.

Counters for TX bytes and packets are deduced from packet priority
counters, and therefore already include BUM traffic. wred_drop counter is
irrelevant on MC TCs, because RED is not enabled on them.

Fixes: 7b81953066 ("mlxsw: spectrum: Configure MC-aware mode on mlxsw ports")
Signed-off-by: Petr Machata <petrm@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>
2020-01-15 04:16:30 -08:00
..
mlx4 devlink: correct misspelling of snapshot 2020-01-11 14:30:24 -08:00
mlx5/core net/mlx5: DR, Init lists that are used in rule's member 2020-01-06 15:30:05 -08:00
mlxfw net/mlxfw: Fix out-of-memory error in mfa2 flash burning 2019-12-26 11:48:39 -08:00
mlxsw mlxsw: spectrum_qdisc: Include MC TCs in Qdisc counters 2020-01-15 04:16:30 -08:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00