Re: [PATCH ipsec-next v1 7/7] bpf: xfrm: Add selftest for bpf_xdp_get_xfrm_state()

2023-11-24 Thread Daniel Xu
Hi Alexei, On Wed, Nov 22, 2023 at 03:28:16PM -0800, Alexei Starovoitov wrote: > On Wed, Nov 22, 2023 at 10:21 AM Daniel Xu wrote: > > > > + > > + bpf_printk("replay-window %d\n", x->replay_esn->replay_window); > > Pls no printk in tests. Find a different way to validate. Ack. I'll

Re: [PATCH ipsec-next v1 7/7] bpf: xfrm: Add selftest for bpf_xdp_get_xfrm_state()

2023-11-22 Thread Alexei Starovoitov
On Wed, Nov 22, 2023 at 10:21 AM Daniel Xu wrote: > > + > + bpf_printk("replay-window %d\n", x->replay_esn->replay_window); Pls no printk in tests. Find a different way to validate.

[PATCH ipsec-next v1 7/7] bpf: xfrm: Add selftest for bpf_xdp_get_xfrm_state()

2023-11-22 Thread Daniel Xu
This commit extends test_tunnel selftest to test the new XDP xfrm state lookup kfunc. Co-developed-by: Antony Antony Signed-off-by: Antony Antony Signed-off-by: Daniel Xu --- .../selftests/bpf/progs/test_tunnel_kern.c| 49 +++ tools/testing/selftests/bpf/test_tunnel.sh