| ▲ | shivanshvij 16 hours ago | ||||||||||||||||
We absolutely ran into these issues. A couple notes that help quite a bit: 1. Always build the eBPF programs in a container - this is great for reproducibility of course, but also makes DevX on MacOS better for those who prefer to use that. 2. You actually can do a full checksum! You need to limit the MTU but you can:
With that being said, it's not lost on me that XDP in general is something you should only reach for once you hit some sort of bottleneck. The original version of our network migration was actually implemented in userspace for this exact reason! | |||||||||||||||||
| ▲ | cptnntsoobv 16 hours ago | parent | next [-] | ||||||||||||||||
> You actually can do a full checksum Indeed! This is what I had in mind when I wrote "cumbersome" :). It's been a while for me to be able to recall whether the problem was the verifier or me, and things may have improved since, but I recall having the verifier choke on a static size limit too. Have you been able to use this trick successfully? > Always build the eBPF programs in a container That should work generally but watch out for any weirdness due to the fact that in a container you are already inside a couple of layers of networking (bridge, netns etc.). | |||||||||||||||||
| ▲ | tptacek 15 hours ago | parent | prev | next [-] | ||||||||||||||||
Different kernels will be different levels of fussy about the bounded loop you're using there. Bounded loops are themselves a relatively recent feature. Of course, checksum fixups in eBPF are idiomatically incremental. | |||||||||||||||||
| ▲ | mgaunard 16 hours ago | parent | prev [-] | ||||||||||||||||
How do containers help when bpf is mostly a matter of kernel version? | |||||||||||||||||
| |||||||||||||||||