Re: [PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc

2023-12-04 Thread Steffen Klassert
On Fri, Dec 01, 2023 at 05:16:04PM -0700, Daniel Xu wrote: > On Fri, Dec 01, 2023 at 04:10:18PM -0800, Alexei Starovoitov wrote: > > On Fri, Dec 1, 2023 at 12:23 PM Daniel Xu wrote: > > > > > > include/net/xfrm.h| 9 + > > > net/xfrm/Makefile

Re: [PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc

2023-12-01 Thread Daniel Xu
On Fri, Dec 01, 2023 at 04:10:18PM -0800, Alexei Starovoitov wrote: > On Fri, Dec 1, 2023 at 12:23 PM Daniel Xu wrote: > > > > This patchset adds two kfunc helpers, bpf_xdp_get_xfrm_state() and > > bpf_xdp_xfrm_state_release() that wrap xfrm_state_lookup() and > > xfrm_state_put(). The intent is

Re: [PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc

2023-12-01 Thread Alexei Starovoitov
On Fri, Dec 1, 2023 at 12:23 PM Daniel Xu wrote: > > This patchset adds two kfunc helpers, bpf_xdp_get_xfrm_state() and > bpf_xdp_xfrm_state_release() that wrap xfrm_state_lookup() and > xfrm_state_put(). The intent is to support software RSS (via XDP) for > the ongoing/upcoming ipsec pcpu work

[PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc

2023-12-01 Thread Daniel Xu
This patchset adds two kfunc helpers, bpf_xdp_get_xfrm_state() and bpf_xdp_xfrm_state_release() that wrap xfrm_state_lookup() and xfrm_state_put(). The intent is to support software RSS (via XDP) for the ongoing/upcoming ipsec pcpu work [0]. Recent experiments performed on (hopefully) reproducible