Closed freak82 closed 5 months ago
Just for FYI, if somebody reads this issue. Forcing copy packets between the kernel and the user space (XDP_COPY) fixes the above issue. It seems that the zero copy mode is not yet fully supported for this scenario (bonding).
Could you resolve this problem? I tried in the same way. AF_XDP is attached to the slaves, but the slave interface can't filer the udp package, the message is received by the bonding interfae in the kernel.
In the xsk_socket__create(), XDP_COPY flag is set, nothing changed.
Any suggestions is appreciated.
Hi there,
I'd like to ask for advice for a weird issue that I'm facing trying to run XDP on top of a bonding device (802.3ad) (or also on the physical interfaces behind the bond).
I've a DPDK application which runs on top of XDP sockets, using the DPDK AF_XDP driver. It was a pure DPDK application but lately it was migrated to run on top of XDP sockets because we need to split the traffic entering the machine between the DPDK application and other "standard-Linux" applications running on the same machine. The application works fine when running on top of a single interface but it has problems when it runs on top of a bonding interface. It needs to be able to run with multiple XDP sockets where each socket (or group of XDP sockets) is/are handled in a separate thread. However, the bonding device is reported with a single queue and thus the application can't open more than one XDP socket for it. So I've tried binding the XDP sockets to the queues of the physical interfaces. For example:- 3 interfaces each one is set to have 8 queues
Thread 1 Thread2 (0 - 0) (0 - 4) (1 - 0) (1 - 4) (2 - 0) (2 - 4) (0 - 1) (0 - 5) (1 - 1) (1 - 5) (2 - 1) (2 - 5) ... ... (0 - 3) (0 - 7) (1 - 3) (1 - 7) (2 - 3) (2 - 7)