Skip to content

mlxsw: Allow setting default port priority

Ido Schimmel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mlxsw: reg: Add QoS Port DSCP to Priority Mapping Registerdrivers/net/ethernet/mellanox/mlxsw/reg.h+33 -00 replies
2/3mlxsw: spectrum_dcb: Allow setting default port prioritydrivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c+17 -00 replies
3/3selftests: mlxsw: Add a self-test for port-default prioritytools/testing/selftests/drivers/net/mlxsw/qos_defprio.sh tools/testing/selftests/net/forwarding/lib.sh+199 -00 replies

Reviews trailers per patch

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

PatchJiri Pirko
1/3A-b
2/3A-b
3/3R-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 0/3] mlxsw: Allow setting default port priority

From: Ido Schimmel <[email protected]>

Petr says:

When LLDP APP TLV selector 1 (EtherType) is used with PID of 0, the corresponding entry specifies "default application priority [...] when application priority is not otherwise specified."

mlxsw currently supports this type of APP entry, but uses it only as a fallback for unspecified DSCP rules. However non-IP traffic is prioritized according to port-default priority, not according to the DSCP-to-prio tables, and thus it's currently not possible to prioritize such traffic correctly.

This patchset extends the use of the abovementioned APP entry to also set default port priority (in patches #1 and #2) and then (in patch #3) adds a selftest.

Petr Machata (3):
mlxsw: reg: Add QoS Port DSCP to Priority Mapping Register
mlxsw: spectrum_dcb: Allow setting default port priority
selftests: mlxsw: Add a self-test for port-default priority

 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  33 ++++
 .../ethernet/mellanox/mlxsw/spectrum_dcb.c    |  17 ++
 .../drivers/net/mlxsw/qos_defprio.sh          | 176 ++++++++++++++++++
 tools/testing/selftests/net/forwarding/lib.sh |  23 +++
 4 files changed, 249 insertions(+)
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/qos_defprio.sh
Signature · 1 line
2.24.1