News for hackers. Stuff that matters.
Re:HBPF – eBPF in Hardware by edude03 on Friday April 01, 2022 @09:23AM (#30877822)
This is super cool. Is the idea that you could use this as part of a NIC and get higher performance than running eBPF in the kernel?
Re:HBPF – eBPF in Hardware by ilovecaching on Friday April 01, 2022 @10:08AM (#30878207)
There are already NICs that have this feature. XDP can run in one of three modes. The firsts mode simply runs the program in the kernel stack and is either for testing or used in the worst case where you have no driver support. The primary mode is for the driver author to write in the invocation of the eBPF program and then implement all the resulting actions into the driver. The third mode is offload, where the eBPF program is loaded into a Smart NIC, FPGA device and the packet is processed without the need for DMA.

By far, the most popular form is running in the driver, which can get very close to line rate for most network cards. If you have any questions about this I'd be happy to go into more detail.

Re:HBPF – eBPF in Hardware by ciupicri on Friday April 01, 2022 @11:50AM (#30879475)
What NICs?
Re:HBPF – eBPF in Hardware by ilovecaching on Friday April 01, 2022 @11:51AM (#30879490)
Someone already mentioned it, but it's a NIC made by Netronome.
Re:HBPF – eBPF in Hardware by tenebrisalietum on Friday April 01, 2022 @09:52AM (#30878060)
Most NICs have one or more CPUs to service offload engines. This could probably happen right now.