|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
One SPSC ring side, caching the peer's last-known index so the hot path avoids re-reading the shared cell on every call. More...
#include <xskring.h>
Data Fields | |
| u32 * | producer |
| shared producer index cell | |
| u32 * | consumer |
| shared consumer index cell | |
| void * | desc |
| entry array (u64[] for fill/comp, xdp_desc[] for rx/tx) | |
| u32 | mask |
| size - 1, masks a raw index into a slot | |
| u32 | size |
| ring capacity, a power of two | |
| u32 | cached_prod |
| last-seen value of *producer | |
| u32 | cached_cons |
| last-seen value of *consumer | |
One SPSC ring side, caching the peer's last-known index so the hot path avoids re-reading the shared cell on every call.