diff options
author | Paul Chaignon <paul@isovalent.com> | 2022-07-25 16:32:15 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-07-26 12:43:16 +0200 |
commit | 861396ac0b47780210b72c4fea359540965a4970 (patch) | |
tree | 0da23aeb470d443ce6486b448d232d90b3f5fca8 /drivers/net | |
parent | 7e2fb8bc7ef6c7a63ca95751b90162dece0b3f4c (diff) | |
download | linux-861396ac0b47780210b72c4fea359540965a4970.tar.gz linux-861396ac0b47780210b72c4fea359540965a4970.tar.bz2 linux-861396ac0b47780210b72c4fea359540965a4970.zip |
geneve: Use ip_tunnel_key flow flags in route lookups
Use the new ip_tunnel_key field with the flow flags in the IPv4 route
lookups for the encapsulated packet. This will be used by the
bpf_skb_set_tunnel_key helper in the subsequent commit.
Signed-off-by: Paul Chaignon <paul@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/fcc2e0eea01e8ea465a180126366ec20596ba530.1658759380.git.paul@isovalent.com
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/geneve.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 2495a5719e1c..018d365f9deb 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -815,6 +815,7 @@ static struct rtable *geneve_get_v4_rt(struct sk_buff *skb, fl4->saddr = info->key.u.ipv4.src; fl4->fl4_dport = dport; fl4->fl4_sport = sport; + fl4->flowi4_flags = info->key.flow_flags; tos = info->key.tos; if ((tos == 1) && !geneve->cfg.collect_md) { |