netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] mlxsw: Offload FIFO
@ 2020-03-05  7:16 Ido Schimmel
  2020-03-05  7:16 ` [PATCH net-next 1/5] net: sched: Make FIFO Qdisc offloadable Ido Schimmel
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Ido Schimmel @ 2020-03-05  7:16 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, jiri, petrm, jhs, xiyou.wangcong, mlxsw, Ido Schimmel

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


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

end of thread, other threads:[~2020-03-05 22:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05  7:16 [PATCH net-next 0/5] mlxsw: Offload FIFO Ido Schimmel
2020-03-05  7:16 ` [PATCH net-next 1/5] net: sched: Make FIFO Qdisc offloadable Ido Schimmel
2020-03-05  7:49   ` Jiri Pirko
2020-03-05 22:06   ` Jakub Kicinski
2020-03-05  7:16 ` [PATCH net-next 2/5] mlxsw: spectrum_qdisc: Introduce struct mlxsw_sp_qdisc_state Ido Schimmel
2020-03-05  9:26   ` Jiri Pirko
2020-03-05  7:16 ` [PATCH net-next 3/5] mlxsw: spectrum_qdisc: Add handle parameter to ..._ops.replace Ido Schimmel
2020-03-05  9:26   ` Jiri Pirko
2020-03-05  7:16 ` [PATCH net-next 4/5] mlxsw: spectrum_qdisc: Support offloading of FIFO Qdisc Ido Schimmel
2020-03-05  9:26   ` Jiri Pirko
2020-03-05  7:16 ` [PATCH net-next 5/5] selftests: forwarding: ETS: Use Qdisc counters Ido Schimmel
2020-03-05 22:03 ` [PATCH net-next 0/5] mlxsw: Offload FIFO David Miller

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).