|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
Fan-out policy: per-worker CPU pinning, optional control-thread pinning, the srvrun knobs copied to every worker, and an optional shared AF_XDP config selecting multi-queue mode. More...
#include <srvthreads.h>
Data Fields | |
| int | cores [WIRED_SRVTHREADS_MAX] |
| CPU index for worker i. | |
| int | n_cores |
| number of workers, <= WIRED_SRVTHREADS_MAX | |
| int | control_core |
| CPU to pin the control thread to; -1 = don't pin. | |
| wired_srvrun_opt | run |
| busy_poll etc., copied to every worker (no_signal_handlers is forced to 1 regardless of what is passed here: only the control thread installs signal handlers) | |
| const wired_srvxdp_cfg * | xdp |
| 0 = UDP + SO_REUSEPORT mode (every worker binds its own socket on port via wired_srvrun_serve_env's existing listen path). | |
Fan-out policy: per-worker CPU pinning, optional control-thread pinning, the srvrun knobs copied to every worker, and an optional shared AF_XDP config selecting multi-queue mode.
| const wired_srvxdp_cfg* wired_srvthreads_opt::xdp |
0 = UDP + SO_REUSEPORT mode (every worker binds its own socket on port via wired_srvrun_serve_env's existing listen path).
Non-0 = AF_XDP multi-queue mode: worker i opens queue i (wired_srvxdp_open_shared) against one shared per-interface BPF object the control thread owns (wired_srvxdpbpf_open/close).