Hacker News new | ask | show | jobs
by sanxiyn 1396 days ago
There is XDP.
2 comments

XDP is kind of the opposite of this, right? It's moving userland code into the kernel.
XDP is a lot of stuff, but I think I have someone around using af_xdp to bypass the kernel network stack and for some (and the filtering and decision of which streams, is done through some ebpf iirc) packets deliver them directly into userland buffer-queues? DPDK also has an AF_XDP backend to bridge your classical DPDK app and AF_XDP sockets.
Ah, that's true. AF_XDP is definitely similar to userland block device offload.
yes, i think there is example code where io_ring is used to get blocks into and out of XDP/kernel.