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

XDP tutorial

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

Hello everybody, I'm new to the XDP world and have a question about redirecting to other interfaces in XDP. The two functions bpf_redirect_map () and bpf_redirect () only takes one...

Any example program for af_xdp socket based packet sending with xdp, here packet can be raw ip packet (packet with ip and UDP header) or any other packets ?

What advantage does af_xdp socket with xdp redirect will give over normal linux raw socket ? Especially in terms of throughput etc.

Hi All, I am trying to write a ebpf prog which filters pkts for certain udp port number and redirects to AF_XDP and in user program read packets from xdp...

I'm not sure my understanding is right about `bpf_xdp_adjust_tail`. `bpf_xdp_adjust_tail` is able to enlarge the underlying packet buffer. For example, receive a 100 byte size ​udp packet on xdp, I...

I have two map. Could I use it like the following ? 2 diferent keys store a same inner map kv. ``` outer_map inner_map outer_map(key_a, inner_map(key1, val1)) outer_map(key_b, inner_map(key1, val1))...

What method should I use to simulate the TC-locking situation? And How can I run the xdp-cpumap-tc project? Thanks!

Hi, We have experienced the following error message when executing `./af_xdp_user -d ens6f1 --zero-copy` Error obtained: **ERROR: Can't setup AF_XDP socket "Invalid argument"** We are using a Mellanox ConnectX-5 with...

When I use the command below to inject the xdp_pass_kern.o to kernel : ```bash ip link set dev eth1 xdpgeneric obj xdp_pass_kern.o sec xdp ``` it occered that: ```bash BTF...

Are there any restrictions on the usage of static, global variable in xdp kernel program ? Will static volatile is a good option ?