Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

50% Positive

Analyzed from 122 words in the discussion.

Trending Topics

#bpf#interesting#useful#performance#networking#wonder#using#nic#directly#packet

Discussion (6 Comments)Read Original on HackerNews

spaceywillyabout 1 hour ago
That’s very interesting, thank you for sharing. Looks like it could be a very useful tool for testing high performance networking.

I wonder if something similar could be done using TC BPF instead of AF_XDP? My only reservation about AF XDP is that it requires a special NIC to support it, so it may not be useful for a “regular Joe” user. I wonder if TC BPF would also work since it similarly bypasses the Kernel networking stack, I believe you can put packets directly into the NIC TX queue for transmission

tptacek33 minutes ago
You can, but the interesting thing about AF_XDP is that you've got a userland path to writing directly to the card's DMA buffers; TC BPF still allocates an skbuff for every packet you send.
bgpdude36 minutes ago
you can use generic af_xdp which sits at the TC layer. Just get a bit less performance.
bgpdude35 minutes ago
That's what the veth examples are using
bgpdude36 minutes ago
Ah thanks!!