Message ID | 76873d384e21288abe5767551a0799ac93ec07fb.1658759380.git.paul@isovalent.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b8fff748521c7178b9a7d32b5a34a81cec8396f3 |
Delegated to: | BPF |
Headers | show |
Series | bpf: Allow any source IP in bpf_skb_set_tunnel_key | expand |
diff --git a/net/core/filter.c b/net/core/filter.c index 57c5e4c4efd2..dffc7dcda96a 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -4653,6 +4653,7 @@ BPF_CALL_4(bpf_skb_set_tunnel_key, struct sk_buff *, skb, } else { info->key.u.ipv4.dst = cpu_to_be32(from->remote_ipv4); info->key.u.ipv4.src = cpu_to_be32(from->local_ipv4); + info->key.flow_flags = FLOWI_FLAG_ANYSRC; } return 0;