|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
One open AF_XDP socket: the fd, its UMEM, the four rings, and the mmap regions backing them (kept so xsksetup_close can munmap them). More...
#include <xsksetup.h>
Data Fields | |
| i64 | fd |
| the AF_XDP socket fd, -1 once closed | |
| u8 * | umem |
| UMEM base address. | |
| usz | umem_len |
| UMEM byte length. | |
| xskring | rx |
| RX ring (kernel -> app: received frames). | |
| xskring | tx |
| TX ring (app -> kernel: frames to send). | |
| xskring | fill |
| fill ring (app -> kernel: free RX frames) | |
| xskring | comp |
| completion ring (kernel -> app: finished TX frames) | |
| void * | map_rx |
| mmap region backing the rx ring | |
| usz | map_rx_len |
| byte length of map_rx | |
| void * | map_tx |
| mmap region backing the tx ring | |
| usz | map_tx_len |
| byte length of map_tx | |
| void * | map_fill |
| mmap region backing the fill ring | |
| usz | map_fill_len |
| byte length of map_fill | |
| void * | map_comp |
| mmap region backing the comp ring | |
| usz | map_comp_len |
| byte length of map_comp | |
One open AF_XDP socket: the fd, its UMEM, the four rings, and the mmap regions backing them (kept so xsksetup_close can munmap them).