]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Configure default routing priority
authorYuval Mintz <yuvalm@mellanox.com>
Sun, 14 Jan 2018 11:33:14 +0000 (12:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Jan 2018 17:21:11 +0000 (12:21 -0500)
commit435890dab16e29edc26d03b64b02c0c8dd6b579e
tree91847c1b30d24513e5607abd6c6227696e7da8c4
parente6516df67264731f32c6b41c3b3a912f6c0968ee
mlxsw: spectrum_router: Configure default routing priority

When routing ip packets, the kernel is setting the SKB's priority
based on the tos field of the packet.
Imitate this behavior in the mlxsw router, having the internal
switch priority of a routed packet determined according to its DS
field.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c