Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> writes: > On Sat, May 18, 2024 at 3:13 AM Lorenzo Bianconi <lorenzo@xxxxxxxxxx> wrote: >> >> Introduce xdp_flowtable_offload bpf sample to offload sw flowtable logic >> in xdp layer if hw flowtable is not available or does not support a >> specific kind of traffic. >> >> Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> >> --- >> samples/bpf/Makefile | 7 +- >> samples/bpf/xdp_flowtable_offload.bpf.c | 591 +++++++++++++++++++++++ >> samples/bpf/xdp_flowtable_offload_user.c | 128 +++++ >> 3 files changed, 725 insertions(+), 1 deletion(-) >> create mode 100644 samples/bpf/xdp_flowtable_offload.bpf.c >> create mode 100644 samples/bpf/xdp_flowtable_offload_user.c > > I feel this sample code is dead on arrival. > Make selftest more real if you want people to use it as an example, > but samples dir is just a dumping ground. > We shouldn't be adding anything to it. Agreed. We can integrate a working sample into xdp-tools instead :) -Toke