[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220718195443.igbutchwxu55z46d@kafai-mbp.dhcp.thefacebook.com>
Date: Mon, 18 Jul 2022 12:54:43 -0700
From: Martin KaFai Lau <kafai@...com>
To: Paul Chaignon <paul@...valent.com>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>, netdev@...r.kernel.org,
bpf@...r.kernel.org, Martin KaFai Lau <martin.lau@...ux.dev>,
John Fastabend <john.fastabend@...il.com>,
Kaixi Fan <fankaixi.li@...edance.com>,
Nikolay Aleksandrov <razor@...ckwall.org>,
Yonghong Song <yhs@...com>
Subject: Re: [PATCH bpf v2 0/5] bpf: Allow any source IP in
bpf_skb_set_tunnel_key
On Mon, Jul 18, 2022 at 05:53:48PM +0200, Paul Chaignon wrote:
> Commit 26101f5ab6bd ("bpf: Add source ip in "struct bpf_tunnel_key"")
> added support for getting and setting the outer source IP of encapsulated
> packets via the bpf_skb_{get,set}_tunnel_key BPF helper. This change
> allows BPF programs to set any IP address as the source, including for
> example the IP address of a container running on the same host.
>
> In that last case, however, the encapsulated packets are dropped when
> looking up the route because the source IP address isn't assigned to any
> interface on the host. To avoid this, we need to set the
> FLOWI_FLAG_ANYSRC flag.
Acked-by: Martin KaFai Lau <kafai@...com>
Powered by blists - more mailing lists