AF_XDP sockets across multiple NIC queues

Konstantinos Kaffes <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CAHAzn3peP-j-oL76FxmyRgHg=QbMfeykA4rQdoDRA-0c6iQ4mg@mail.gmail.com>
Hello everyone,

I want to write a multi-threaded AF_XDP server where all N threads can
read from all N NIC queues. In my design, each thread creates N AF_XDP
sockets, each associated with a different queue. I have the following
questions:

1. Do sockets associated with the same queue need to share their UMEM
area and fill and completion rings?
2. Will there be a single XSKMAP holding all N^2 sockets? If yes, what
happens if my XDP program redirects a packet to a socket that is
associated with a different NIC queue than the one in which the packet
arrived?

I must mention that I am using the XDP skb mode with copies.

Thank you in advance,
Kostis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.