Relative Content

Tag Archive for socketsebpfbpfxdp-bpf

Directing Packets further in the Network Stack from UMEM

I’ve been following the xdp-tutorial on GitHub to learn about eBPF and AF_XDP. I’ve encountered an issue while following the tutorial: https://github.com/xdp-project/xdp-tutorial/tree/master/advanced03-AF_XDP, is that although data is being transferred to the UMEM in user space (af_xdp_user.c) and I am able to get the statistics, but many of the packets are getting dropped after that. I had changed the process_packet function from the tutorial for a simple task, i.e, to count the number of TCP packets received.
The following is the code for the changed process_packet function: