Re: IP forwarding and eBPF

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

 



On December 28, 2017 8:34:24 PM PST, David Ahern <dsahern@xxxxxxxxx> wrote:
>On 12/28/17 9:37 PM, MD I. Islam wrote:
>> Hi
>> 
>> Is XDP designed for implementing packet forwarding? Is there an
>> example of ipv4 forwarding the kernel? I don't find any example in
>> samples/bpf/ directory.
>
>samples/bpf/xdp_router_ipv4_*.c
>
>I have a POC on using new helpers that allow BPF programs to leverage
>kernel FIB and neighbor tables:
>   https://github.com/dsahern/linux/commits/bpf/xdp-fwding-wip
>
>It shows a 400% increase in forwarding. A lot of issues need to be
>addressed, but it shows the intent.

Nice! What would be uber cool is a NATP fastpath implemented using XDP. Now that eBPF for ARM32 has landed it would enable a lot of platforms.

-- 
Florian




[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux