lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 13 Oct 2021 13:37:43 +0300
From:   Ido Schimmel <idosch@...sch.org>
To:     netdev@...r.kernel.org
Cc:     davem@...emloft.net, kuba@...nel.org, jiri@...dia.com,
        petrm@...dia.com, mlxsw@...dia.com,
        Ido Schimmel <idosch@...dia.com>
Subject: [PATCH net-next 0/5] mlxsw: Show per-band ECN-marked counter on qdisc

From: Ido Schimmel <idosch@...dia.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ