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]
Message-Id: <20200305071644.117264-1-idosch@idosch.org>
Date:   Thu,  5 Mar 2020 09:16:39 +0200
From:   Ido Schimmel <idosch@...sch.org>
To:     netdev@...r.kernel.org
Cc:     davem@...emloft.net, kuba@...nel.org, jiri@...lanox.com,
        petrm@...lanox.com, jhs@...atatu.com, xiyou.wangcong@...il.com,
        mlxsw@...lanox.com, Ido Schimmel <idosch@...lanox.com>
Subject: [PATCH net-next 0/5] mlxsw: Offload FIFO

From: Ido Schimmel <idosch@...lanox.com>

Petr says:

If an ETS or PRIO band contains an offloaded qdisc, it is possible to
obtain offloaded counters for that band. However, some of the bands will
likely simply contain the default invisible FIFO qdisc, which does not
present the counters.

To remedy this situation, make FIFO offloadable, and offload it by mlxsw
when below PRIO and ETS for the sole purpose of providing counters for the
bands that do not include other qdiscs.

- In patch #1, FIFO is extended to support offloading.
- Patches #2 and #3 restructure bits of mlxsw to facilitate
  the offload logic.
- Patch #4 then implements the offload itself.
- Patch #5 changes the ETS selftest to use the new counters.

Petr Machata (5):
  net: sched: Make FIFO Qdisc offloadable
  mlxsw: spectrum_qdisc: Introduce struct mlxsw_sp_qdisc_state
  mlxsw: spectrum_qdisc: Add handle parameter to ..._ops.replace
  mlxsw: spectrum_qdisc: Support offloading of FIFO Qdisc
  selftests: forwarding: ETS: Use Qdisc counters

 .../net/ethernet/mellanox/mlxsw/spectrum.c    |   2 +
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |   6 +-
 .../ethernet/mellanox/mlxsw/spectrum_qdisc.c  | 249 ++++++++++++++----
 include/linux/netdevice.h                     |   1 +
 include/net/pkt_cls.h                         |  15 ++
 net/sched/sch_fifo.c                          |  97 ++++++-
 .../selftests/drivers/net/mlxsw/sch_ets.sh    |  14 +-
 tools/testing/selftests/net/forwarding/lib.sh |  10 +
 .../selftests/net/forwarding/sch_ets.sh       |   9 +-
 .../selftests/net/forwarding/sch_ets_tests.sh |  10 +-
 10 files changed, 340 insertions(+), 73 deletions(-)

-- 
2.24.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ