Skip to content

mlxsw qdisc refactoring

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mlxsw: spectrum: qdiscs: Move qdisc's declarations to its designated filedrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+51 -250 replies
2/11net: sch: red: Change the name of the stats struct to be genericdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c include/net/pkt_cls.h+7 -60 replies
3/11net: sch: red: Change offloaded xstats to be incrementaldrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c net/sched/sch_red.c+20 -190 replies
4/11mlxsw: spectrum: qdiscs: Clean qdisc statistics structsdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+32 -310 replies
5/11mlxsw: spectrum: qdiscs: Make the clean stats function to be for RED onlydrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+13 -200 replies
6/11mlxsw: spectrum: qdiscs: Add tclass number to the mlxsw_sp_qdiscdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+18 -180 replies
7/11mlxsw: spectrum: qdiscs: Unite all handle checksdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+22 -210 replies
8/11mlxsw: spectrum: qdiscs: Add an ops structdrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+62 -140 replies
9/11mlxsw: spectrum: qdiscs: Create a generic destroy functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+26 -110 replies
10/11mlxsw: spectrum: qdiscs: Create a generic replace functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+71 -380 replies
11/11mlxsw: spectrum: qdiscs: Remove qdisc before setting a new onedrivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c+7 -00 replies

Reviews trailers per patch

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

PatchYuval Mintz
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-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/11] mlxsw qdisc refactoring

From: Jiri Pirko <[email protected]>

This patchset refactors the qdisc handling in mlxsw driver in order to make it more object oriented like.
It helps readability, laying the groundwork for the offloading of additional qdiscs by the driver
This patchset also makes the qdiscs statistics more generic.

Patch 1 moves the qdiscs declaration to the spectrum_qdisc.c Patches 2-3 clean the offloaded stats requests. Patch 2 changes the RED generic stats struct to be sharable by other offloaded qdiscs. Patch 3 changes the xstats request to be like the stats. Note that these patches are outside the driver scope.
Patches 4-5 clean the statistics related functions and structs within the driver.
Patches 6-7 decrease the need for the same parameters to be sent to many functions.
Patches 8-11 create a functions pointers struct, to make the qdiscs handling more object oriented like.

Nogah Frankel (11):
mlxsw: spectrum: qdiscs: Move qdisc's declarations to its designated
file
net: sch: red: Change the name of the stats struct to be generic
net: sch: red: Change offloaded xstats to be incremental
mlxsw: spectrum: qdiscs: Clean qdisc statistics structs
mlxsw: spectrum: qdiscs: Make the clean stats function to be for RED
only
mlxsw: spectrum: qdiscs: Add tclass number to the mlxsw_sp_qdisc
mlxsw: spectrum: qdiscs: Unite all handle checks
mlxsw: spectrum: qdiscs: Add an ops struct
mlxsw: spectrum: qdiscs: Create a generic destroy function
mlxsw: spectrum: qdiscs: Create a generic replace function
mlxsw: spectrum: qdiscs: Remove qdisc before setting a new one

 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     |  10 +
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     |  27 +-
 .../net/ethernet/mellanox/mlxsw/spectrum_qdisc.c   | 362 ++++++++++++++-------
 include/net/pkt_cls.h                              |  11 +-
 net/sched/sch_red.c                                |  24 +-
 5 files changed, 280 insertions(+), 154 deletions(-)
Signature · 1 line
2.14.3