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)
commit48276a296a27a85c4c220d0a313c06711ea0cfcf
tree91847c1b30d24513e5607abd6c6227696e7da8c4
parentddb362ced1bc35ea8c2465c9b1e6061ead0b61af
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