Re: [PATCH net v4 2/2] bpf: selftests: send packet to devmap redirect XDP

2024-10-02 Thread Martin KaFai Lau
On 9/11/24 1:41 AM, Florian Kauer wrote: @@ -25,14 +28,11 @@ static void test_xdp_with_devmap_helpers(void) if (!ASSERT_OK_PTR(skel, "test_xdp_with_devmap_helpers__open_and_load")) return; - dm_fd = bpf_program__fd(skel->progs.xdp_redir_prog); - err = bpf_xdp_att

Re: [PATCH net v4 2/2] bpf: selftests: send packet to devmap redirect XDP

2024-09-11 Thread Toke Høiland-Jørgensen
Florian Kauer writes: > The current xdp_devmap_attach test attaches a program > that redirects to another program via devmap. > > It is, however, never executed, so do that to catch > any bugs that might occur during execution. > > Also, execute the same for a veth pair so that we > also cover th

[PATCH net v4 2/2] bpf: selftests: send packet to devmap redirect XDP

2024-09-11 Thread Florian Kauer
The current xdp_devmap_attach test attaches a program that redirects to another program via devmap. It is, however, never executed, so do that to catch any bugs that might occur during execution. Also, execute the same for a veth pair so that we also cover the non-generic path. Warning: Running