diff options
author | Beniamino Galvani <b.galvani@gmail.com> | 2023-10-16 09:15:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-16 09:57:52 +0100 |
commit | 3ae983a603a49e6c80763f747a170b7e987531f3 (patch) | |
tree | f133b3f10e288c89bf2abaf722a43eeac097da2d /net/ipv4/udp_tunnel_core.c | |
parent | 72fc68c6356b663a8763f02d9b0ec773d59a4949 (diff) |
ipv4: use tunnel flow flags for tunnel route lookups
Commit 451ef36bd229 ("ip_tunnels: Add new flow flags field to
ip_tunnel_key") added a new field to struct ip_tunnel_key to control
route lookups. Currently the flag is used by vxlan and geneve tunnels;
use it also in udp_tunnel_dst_lookup() so that it affects all tunnel
types relying on this function.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp_tunnel_core.c')
-rw-r--r-- | net/ipv4/udp_tunnel_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/udp_tunnel_core.c b/net/ipv4/udp_tunnel_core.c index 494685e82856..a87defb2b167 100644 --- a/net/ipv4/udp_tunnel_core.c +++ b/net/ipv4/udp_tunnel_core.c @@ -232,6 +232,7 @@ struct rtable *udp_tunnel_dst_lookup(struct sk_buff *skb, fl4.fl4_dport = dport; fl4.fl4_sport = sport; fl4.flowi4_tos = RT_TOS(tos); + fl4.flowi4_flags = key->flow_flags; rt = ip_route_output_key(net, &fl4); if (IS_ERR(rt)) { |