xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

XDP tutorial

Results 162 xdp-tutorial issues
Sort by recently updated
recently updated
newest added

In packet02-rewriting, the following code will be executed to rewrite udp dest port: udphdr->dest = bpf_htons(bpf_ntohs(udphdr->dest) - 1); If this has been done, the udp checksum in the udp header...

I create some xdp socket in userspace and use xsk_map to redirect packet to differenet socket, but by using bpf_map_lookup_elem in kernel, I find that the mapping is not what...

Not sure if this is the right place to ask such a question, but I built an application based on the adv03 AF XDP tutorial so maybe someone can help...

Commit 0ded568, made by @donaldh and already merged, changed COPY_LOADER from `xdp_loader` to `xdp-loader`, but there are still dependencies on `xdp_loader`. I fixed the following: - Used `xdp-loader` instead of...

Regarding to packet03-redirecting, added `common_user_bpf_xdp.o` to `COMMON_OBJS`. In `packet03-redirecting/xdp_prog_user.c`, `common/common_user_bpf_xdp.h` is included, but `common_user_bpf_xdp.o` is not included in `COMMON_OBJS`. This omission causes the build to fail during assignment3, as `open_bpf_map_file()`...

When I try to compile the codes the xdp_vlan01_kern.c uses #pragma unroll, it throws error. ``` CC xdp_prog_user CLANG xdp_prog_kern_02.o LLC xdp_prog_kern_02.o CLANG xdp_prog_kern_03.o LLC xdp_prog_kern_03.o CLANG tc_reply_kern_02.o LLC tc_reply_kern_02.o...

how does af_xdp assign the cpu core for processing in? need to use so reuse port or something? or is there a possibility to divert it to the right cpu...

I'm trying to capture the packet from veth and encapsulate a new eth header to send it out by a real eth nic. As far as I know, in xdp...

I have this on eBPF side. I want to manipulate and modify a packet at the Ethernet/IPv4/TCP layers and then send it to the kernel. This way, for example, I...