mlxsw: Allow setting default port priority
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mlxsw: reg: Add QoS Port DSCP to Priority Mapping Registerdrivers/ | +33 | 0 replies | |
| 2/3 | mlxsw: spectrum_dcb: Allow setting default port prioritydrivers/ | +17 | 0 replies | |
| 3/3 | selftests: mlxsw: Add a self-test for port-default prioritytools/ tools/ | +199 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Jiri Pirko |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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