Re: [PATCH bpf-next v2 3/4] samples/bpf: Add bpf sample to offload flowtable traffic to xdp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux