]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Handle sysctl_ip_fwd_update_priority
authorPetr Machata <petrm@mellanox.com>
Tue, 31 Jul 2018 22:38:03 +0000 (00:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:52:30 +0000 (09:52 -0700)
commit926655c66b78cb5f922cac0b77f05955c8ba35ce
treeebc24a7ef8a6524613a7dfe03e4f1f45d494ff11
parent185f2e041f9afbdf749b9c61c53c76369287f17d
mlxsw: spectrum_router: Handle sysctl_ip_fwd_update_priority

This sysctl setting controls whether packet priority should be updated
after forwarding. Configure RGCR.usp accordingly so that the device is
in sync with the kernel handling.

Note that RGCR doesn't allow changing arbitrary parameters
mid-operation, however "usp" is exempt and can be reconfigured.

Also react to NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE notifications
that signify change in this configuration.

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