On Sat, 18 May 2024 at 12:13, Lorenzo Bianconi <lorenzo@xxxxxxxxxx> wrote: > > Introduce bpf_xdp_flow_offload_lookup kfunc in order to perform the > lookup of a given flowtable entry based on a fib tuple of incoming > traffic. > bpf_xdp_flow_offload_lookup can be used as building block to offload > in xdp the processing of sw flowtable when hw flowtable is not > available. > > Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> > --- Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> Though I think it might have been better to have an opts parameter for extensibility (and have opts->error for now to aid debugging when NULL is returned), but I won't insist (it's not a big deal, as there's only two things that can go wrong: the tuple->family is unsupported or the lookup fails).