]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Don't accidentally set RTO_ONLINK before mlx5e_route_lookup_ipv4_get()
authorGuillaume Nault <gnault@redhat.com>
Mon, 10 Jan 2022 13:43:14 +0000 (14:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Jan 2022 04:36:09 +0000 (20:36 -0800)
commit0fa81f49fee42ac1aeec80dbad262979f7ac3a4a
tree1feb789d12c940e8830d761159c9c7d5f625f603
parente0c8886a776e91317a4bebe63eb0890fb1cd7a39
mlx5: Don't accidentally set RTO_ONLINK before mlx5e_route_lookup_ipv4_get()

Mask the ECN bits before calling mlx5e_route_lookup_ipv4_get(). The
tunnel key might have the last ECN bit set. This interferes with the
route lookup process as ip_route_output_key_hash() interpretes this bit
specially (to restrict the route scope).

Found by code inspection, compile tested only.

Fixes: b5e734b93169 ("net/mlx5e: TC preparation refactoring for routing update event")
Fixes: 8a190bfd47a3 ("net/mlx5e: Maximize ip tunnel key usage on the TC offloading path")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c