Skip to content

mlxsw: Offload multi-queue RED support

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mlxsw: spectrum: qdiscs: Support qdisc per tclassdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+53 -100 replies
2/10mlxsw: spectrum: Add priority countersdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h+12 -00 replies
3/10mlxsw: spectrum: qdiscs: Add priority map per qdiscdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+7 -00 replies
4/10mlxsw: spectrum: qdiscs: Collect stats for sch_red based on priomapdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+50 -190 replies
5/10mlxsw: spectrum: qdiscs: Update backlog handling of a child qdiscsdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+12 -20 replies
6/10net: sch: Don't warn on missmatching qlen and backlog for offloaded qdiscsnet/sched/sch_api.c+6 -10 replies
7/10mlxsw: spectrum: Update sch_prio stats to include sch_red related dropsdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+4 -10 replies
8/10mlxsw: spectrum: qdiscs: prio: Delete child qdiscs when removing bandsdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c net/sched/sch_prio.c+12 -80 replies
9/10net: sch: prio: Add offload ability for grafting a childinclude/net/pkt_cls.h net/sched/sch_prio.c+40 -05 replies
10/10mlxsw: spectrum: qdiscs: prio: Handle graft commanddrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+54 -00 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchYuval Mintz
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch net-next 00/10] mlxsw: Offload multi-queue RED support

From: Jiri Pirko <[email protected]>

Nogah says:

Support a two level hierarchy of offloaded qdiscs in mlxsw, with sch_prio being the root qdisc and sch_red as the children.

                +----------+
                | sch_prio |
                +----+-----+
                     |
                     |
    +----------------------------------+
    |                |                 |
    |                |                 |
    |                |                 |
+---v---+       +----v---+       +-----v--+
|sch_red|       |sch_red |       |sch_red |
+-------+       +--------+       +--------+

When setting sch_prio as the root qdisc on a physical port, mlxsw will offload it. When adding it with sch_red as a child qdisc, it will offload it as well.
Relocating child qdisc or connecting them to more then one child will result in unoffloading them. Relocating child qdisc more then once is highly unrecommended and might cause a miss match between the kernel configuration and the offloaded one. The offloaded configuration will be aligned with the one shown in the show command.
Changing the priomap parameter of sch_prio might cause a band that its configuration was changed and it has offloaded sch_red set on it, to lose some stats data as if sch_red was unoffloaded and offloaded again. However, it won't affect the data on this band that will have sch_red continuously.

Patch 1 adds support for setting RED as the child of root qdisc. Patches 2-4 add support for RED bstasts for offloaded child qdiscs. Patches 5-6 handle backlog related changes for offloaded child qdiscs. Patches 7-8 update PRIO in mlxsw to be able to have RED as child on its bands.
Patch 9 adds offload handles for PRIO graft operations. In mlxsw it will cause the driver to stop offloading the child in question.

Nogah Frankel (10):
mlxsw: spectrum: qdiscs: Support qdisc per tclass
mlxsw: spectrum: Add priority counters
mlxsw: spectrum: qdiscs: Add priority map per qdisc
mlxsw: spectrum: qdiscs: Collect stats for sch_red based on priomap
mlxsw: spectrum: qdiscs: Update backlog handling of a child qdiscs
net: sch: Don't warn on missmatching qlen and backlog for offloaded
qdiscs
mlxsw: spectrum: Update sch_prio stats to include sch_red related
drops
mlxsw: spectrum: qdiscs: prio: Delete child qdiscs when removing bands
net: sch: prio: Add offload ability for grafting a child
mlxsw: spectrum: qdiscs: prio: Handle graft command

 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     |  10 +
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     |   3 +
 .../net/ethernet/mellanox/mlxsw/spectrum_qdisc.c   | 206 ++++++++++++++++++---
 include/net/pkt_cls.h                              |   8 +
 net/sched/sch_api.c                                |   7 +-
 net/sched/sch_prio.c                               |  45 ++++-
 6 files changed, 244 insertions(+), 35 deletions(-)
Signature · 1 line
2.14.3