Šabić: eBPF and XDP for Processing Packets at Bare-metal Speed
Now comes the most relevant part of our XDP program that deals with packet’s processing logic. XDP ships with a predefined set of verdicts that determine how the kernel diverts the packet flow. For instance, we can pass the packet to the regular network stack, drop it, redirect the packet to another NIC and such. In our case, XDP_DROP yields an ultra-fast packet drop."
Posted Jun 4, 2019 15:09 UTC (Tue)
by clameter (subscriber, #17005)
[Link] (2 responses)
Posted Jun 5, 2019 13:44 UTC (Wed)
by edomaur (subscriber, #14520)
[Link]
Posted Jun 8, 2019 0:02 UTC (Sat)
by ncm (guest, #165)
[Link]
If I had access, from my eBPF program fragment, to pre-permission-checked ranges of user-space memory, it would do everything I need, and make io_uring redundant. (It doesn't do exactly what I need, anyway, but something else costlier.) On NICs that let me run my eBPF on the NIC, it would free one or more whole CPU cores per interface. Either way, it would relieve dependency on proprietary libraries and, sometimes, on superuser permissions.
Posted Jun 6, 2019 3:34 UTC (Thu)
by pakumar (guest, #96315)
[Link]
Šabić: eBPF and XDP for Processing Packets at Bare-metal Speed
Šabić: eBPF and XDP for Processing Packets at Bare-metal Speed
Šabić: eBPF and XDP for Processing Packets at Bare-metal Speed
Šabić: eBPF and XDP for Processing Packets at Bare-metal Speed