xdp-tutorial
xdp-tutorial copied to clipboard
XDP tutorial
Below I reproduce the issue using a PCAP file I had laying around. I modify the advanced03-AP-XDP tutorial code to not free each UMEM frame after it is processed in...
So using the tutorial code [1] and the one-liner XDP program which passes all packets through, and the `af_xdp_user.c` code which just loops through the received packets and then frees...
How would the code be changed to make use of XDP_SHARED_UMEM ? Is it possible to add an extra section for this? And/or to add an extra tutorial assignment?
I noticed that this tutorial implements the command line `-M` option for `Reuse pinned maps` [1], whereas the Linux kernel source tree xdpsock example implements the command line `-M` option...
Section [1] warns about multiple NIC queues, but AFAICT veth, at least by default, does not use multiple queues. So now to the question: Is there a way to make...
What I did: - Setup virtual interface via `$ sudo ./testenv.sh setup --name="veth-basic02"` - Constantly pinging the interface via `$ sudo ./testenv ping` - Changing `af_xdp_kern.c` to: ``` SEC("xdp_sock") int...
So I was working through assignment 3 in basic03-map-counter [1] and have the following questions: Okay, so I changed BPF_MAP_TYPE_ARRAY to BPF_MAP_TYPE_PERCPU_ARRAY and added the map_get_value_percpu_array() function. Everything works as...
vagrant: add vagrant support to build latest bpf-next in VM advanced03: add support for the XDP_USE_NEED_WAKEUP API
Would be nice to have aa tutorial for syncookie handling, simple synflood filter with `bpf_tcp_check_syncookie` function. Kernel already has this test as a starting point https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c
Hi, I am working on a Beagle Board and try to compile xdp example but encountered error. I followed setup_dependencies.org, all installed but bpftool: ```bash # debian@beaglebone:/var/lib/cloud9/xdp-tutorial$ file /usr/sbin/bpftool /usr/sbin/bpftool:...