News for hackers. Stuff that matters.
Re:HBPF – eBPF in Hardware by r0bot on Friday April 01, 2022 @09:23AM (#30877824)
Hi are you the author? What would I need to study to be able to do stuff like this? Are there any specific books or courses you’d recommend? Thanks
Re:HBPF – eBPF in Hardware by ilovecaching on Friday April 01, 2022 @10:09AM (#30878212)
If you have any questions about eBPF I'd be happy to answer them, I work on the kernel portion.
Re:HBPF – eBPF in Hardware by nimish on Friday April 01, 2022 @02:13PM (#30881459)
Is it possible to do stateful stuff like NAT in eBPF without having to reimplement conntrack? I think cilium does it but has to reimplement in using maps.
Re:HBPF – eBPF in Hardware by ilovecaching on Friday April 01, 2022 @03:13PM (#30882161)
Not in an XDP program, it runs almost immediately after a packet has been rxed, and yes, Cilium does this by reimplementing similar logic in BPF. You could request new helpers for a SCHED_CLS type program though. The helpers don't exist today, but eBPF is use case driven, and if there is a good use case for it, it can go onto the roadmap.
Re:HBPF – eBPF in Hardware by nimish on Saturday April 02, 2022 @02:37PM (#30890547)
Thanks! I did find this: https://lists.linuxfoundation.org/pipermail/iovisor-dev/2017... and some references to bpf_skb_ct_lookup/bpf_xdp_ct_lookup -- are these fully baked?
Re:HBPF – eBPF in Hardware by mhh__ on Friday April 01, 2022 @10:25AM (#30878364)
There isn't much in the way of books that really take you from design to implementation when it comes to CPU design but the nand2tetris book is a good place to start.
Re:HBPF – eBPF in Hardware by pastage on Friday April 01, 2022 @09:30AM (#30877873)
That is a broad question, going through a FPGA tutorial buying a small dev board. My first project was something similar to this, but a lot simpler.