]> Git Repo - linux.git/commit
net: Handle l3mdev in ip_tunnel_init_flow
authorDavid Ahern <[email protected]>
Wed, 13 Apr 2022 17:43:20 +0000 (11:43 -0600)
committerJakub Kicinski <[email protected]>
Fri, 15 Apr 2022 21:27:30 +0000 (14:27 -0700)
commitdb53cd3d88dc328dea2e968c9c8d3b4294a8a674
treea4478d8286c17d1a9a228a07ac69aac30e6e4563
parent83daab06252ee5d0e1f4373ff28b79304945fc19
net: Handle l3mdev in ip_tunnel_init_flow

Ido reported that the commit referenced in the Fixes tag broke
a gre use case with dummy devices. Add a check to ip_tunnel_init_flow
to see if the oif is an l3mdev port and if so set the oif to 0 to
avoid the oif comparison in fib_lookup_good_nhc.

Fixes: 40867d74c374 ("net: Add l3mdev index to flow struct and avoid oif reset for port devices")
Reported-by: Ido Schimmel <[email protected]>
Signed-off-by: David Ahern <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
include/net/ip_tunnels.h
net/ipv4/ip_gre.c
net/ipv4/ip_tunnel.c
This page took 0.064665 seconds and 4 git commands to generate.