As the title says, on some older kernels SO_PREFER_BUSY_POLL and SO_BUSY_POLL_BUDGET are undefined, therefore AF_XDP-example won't compile.
Maybe put a check for it at compile time? (I put some #ifdef but I don't have much experience in C to know if it is the best way)
Hi,
As the title says, on some older kernels
SO_PREFER_BUSY_POLL
andSO_BUSY_POLL_BUDGET
are undefined, therefore AF_XDP-example won't compile. Maybe put a check for it at compile time? (I put some#ifdef
but I don't have much experience in C to know if it is the best way)Reference: https://github.com/xdp-project/bpf-examples/blob/e7153648544a43f036142fcea136c54bffc3431a/AF_XDP-example/xdpsock.c#L1835