xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

for things like websocket which depends on the number of file descriptors, does AF_XDP have file descriptors per connection?

Open kolinfluence opened this issue 2 years ago • 3 comments

for things like websocket which depends on the number of file descriptors, does AF_XDP have file descriptors per connection?

sorry was just curious. i've tried out asavie/xdp repo but not sure about whether af_xdp will be using file descriptors per connection or otherwise.

kolinfluence avatar Dec 12 '22 02:12 kolinfluence

AF_XDP has no notion of a "connection", it just processes packets. If you want to run something "connection-based" on top (like TCP), you'll have to implement that yourself...

tohojo avatar Dec 12 '22 13:12 tohojo

ok thx! do u think it's difficult to do a connection based inside ebpf/af_xdp?

kolinfluence avatar Dec 13 '22 06:12 kolinfluence

ultperf @.***> writes:

ok thx! do u think it's difficult to do a connection based inside ebpf/af_xdp?

Yes. I don't know why you'd want to do that...

tohojo avatar Dec 13 '22 12:12 tohojo