Skip to content

Commit a50cbac

Browse files
Kaixi Fanborkmann
authored andcommitted
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: 933a741 ("selftests/bpf: bpf tunnel test.") Signed-off-by: Kaixi Fan <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 7cda76d commit a50cbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_tunnel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# from root namespace, the following operations happen:
4040
# 1) Route lookup shows 10.1.1.100/24 belongs to tnl dev, fwd to tnl dev.
4141
# 2) Tnl device's egress BPF program is triggered and set the tunnel metadata,
42-
# with remote_ip=172.16.1.200 and others.
42+
# with remote_ip=172.16.1.100 and others.
4343
# 3) Outer tunnel header is prepended and route the packet to veth1's egress
4444
# 4) veth0's ingress queue receive the tunneled packet at namespace at_ns0
4545
# 5) Tunnel protocol handler, ex: vxlan_rcv, decap the packet

0 commit comments

Comments
 (0)