DouglasGray / xsk-rs

A Rust interface for Linux AF_XDP sockets
MIT License
68 stars 16 forks source link

out of memory in socket create with multiple queues #20

Open gamemachine opened 1 year ago

gamemachine commented 1 year ago

This is on master using fedora38 (6.4 kernel)

Not sure if this is Veth specific or not. So Veth netdevs return 4 as the max for rx/tx queues, but show current as 1. So I created a pair like so: ip link add numrxqueues 4 numtxqueues 4 ve0 type veth peer name ve1

But when calling Socket::new on a queue > 0 and xsk_socket__create_shared returns error code 12 out of memory. This is using a single umem.

Would be nice to know if this is a Veth specific issue or not. If anyone can confirm it works on a multi queue NIC.