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.