netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] mlxsw: Show per-band ECN-marked counter on qdisc
@ 2021-10-13 10:37 Ido Schimmel
  2021-10-13 10:37 ` [PATCH net-next 1/5] mlxsw: reg: Fix a typo in a group heading Ido Schimmel
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Ido Schimmel @ 2021-10-13 10:37 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, jiri, petrm, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@nvidia.com>

Petr says:

The RED qdisc can expose number of packets that it has marked through
the prob_marked counter (shown in iproute2 as "marked"). This counter
currently just shows number of packets marked in the SW datapath, which
in a switch deployment likely means zero.

Spectrum-3 does support per-TC counters, and in this patchset, mlxsw
supports this RED statistic properly.

Patches #1 and #2 fix typos.

Patch #3 adds a field ecn_marked_tc to the PPCNT register.

Patch #4 adds the support to publish the value of ecn_marked_tc through
the prob_marked RED qdisc counter.

Patch #5 adds selftests.

Petr Machata (5):
  mlxsw: reg: Fix a typo in a group heading
  mlxsw: reg: Rename MLXSW_REG_PPCNT_TC_CONG_TC to _CNT
  mlxsw: reg: Add ecn_marked_tc to Per-TC Congestion Counters
  mlxsw: spectrum_qdisc: Introduce per-TC ECN counters
  selftests: mlxsw: RED: Test per-TC ECN counters

 drivers/net/ethernet/mellanox/mlxsw/reg.h     | 10 +++-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    | 12 +++--
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |  1 +
 .../ethernet/mellanox/mlxsw/spectrum_qdisc.c  |  9 +++-
 .../drivers/net/mlxsw/sch_red_core.sh         | 51 +++++++++++++++----
 .../drivers/net/mlxsw/sch_red_ets.sh          | 11 ++++
 .../drivers/net/mlxsw/sch_red_root.sh         |  8 +++
 7 files changed, 84 insertions(+), 18 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-14  1:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-13 10:37 [PATCH net-next 0/5] mlxsw: Show per-band ECN-marked counter on qdisc Ido Schimmel
2021-10-13 10:37 ` [PATCH net-next 1/5] mlxsw: reg: Fix a typo in a group heading Ido Schimmel
2021-10-13 10:37 ` [PATCH net-next 2/5] mlxsw: reg: Rename MLXSW_REG_PPCNT_TC_CONG_TC to _CNT Ido Schimmel
2021-10-13 10:37 ` [PATCH net-next 3/5] mlxsw: reg: Add ecn_marked_tc to Per-TC Congestion Counters Ido Schimmel
2021-10-13 10:37 ` [PATCH net-next 4/5] mlxsw: spectrum_qdisc: Introduce per-TC ECN counters Ido Schimmel
2021-10-13 10:37 ` [PATCH net-next 5/5] selftests: mlxsw: RED: Test " Ido Schimmel
2021-10-14  1:00 ` [PATCH net-next 0/5] mlxsw: Show per-band ECN-marked counter on qdisc patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).