Re: [PATCH] selftests/bpf: Move test_lwt_ip_encap to test_progs

2025-03-11 Thread Martin KaFai Lau
On 3/4/25 1:24 AM, Bastien Curutchet (eBPF Foundation) wrote: +int remove_routes_to_gredev(const char *ns1, const char *ns2, const char *vrf) +{ + SYS(fail, "ip -n %s route del %s dev veth5 %s", ns1, IP4_ADDR_GRE, vrf); + SYS(fail, "ip -n %s route del %s dev veth7 %s", ns2, IP4_ADDR_G

[PATCH] selftests/bpf: Move test_lwt_ip_encap to test_progs

2025-03-04 Thread Bastien Curutchet (eBPF Foundation)
test_lwt_ip_encap.sh isn't used by the BPF CI. Add a new file in the test_progs framework to migrate the tests done by test_lwt_ip_encap.sh. It uses the same network topology and the same BPF programs located in progs/test_lwt_ip_encap.c. Rework the GSO part to avoid using nc and dd. Remove test_