]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix tunnel remote IP comments
authorKaixi Fan <fankaixi.li@bytedance.com>
Sun, 13 Mar 2022 16:41:16 +0000 (00:41 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 17 Mar 2022 23:08:02 +0000 (16:08 -0700)
commit5bc488d92b0f6b6dc41841671dffb9752a0f63ea
tree790e61333a2d555484dd95a1c93f89fe29dd8b0c
parenta29473c2861f2cbbb5d824219d5427e9f1d6797d
selftests/bpf: Fix tunnel remote IP comments

In namespace at_ns0, the IP address of tnl dev is 10.1.1.100 which is the
overlay IP, and the ip address of veth0 is 172.16.1.100 which is the vtep
IP. When doing 'ping 10.1.1.100' from root namespace, the remote_ip should
be 172.16.1.100.

Fixes: 7f0d97936029 ("selftests/bpf: bpf tunnel test.")
Signed-off-by: Kaixi Fan <fankaixi.li@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20220313164116.5889-1-fankaixi.li@bytedance.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_tunnel.sh