]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_dcb: Allow setting default port priority
authorPetr Machata <petrm@mellanox.com>
Sun, 29 Dec 2019 11:48:28 +0000 (13:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2020 23:40:14 +0000 (15:40 -0800)
commitb8fd4f247871a3f9893004e2fa7d5e9a02118df2
tree979bdd5e65d6594320cd1adc2601a0db8aae9aac
parent33d935593fddee449b9ce1f67b3f2b9fe05c7686
mlxsw: spectrum_dcb: Allow setting default port priority

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

Extend the use of the abovementioned APP entry to also set default port
priority.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c