xdp-newbies.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* AF_XDP sockets across multiple NIC queues
@ 2021-03-25  6:24 Konstantinos Kaffes
  2021-03-25  7:24 ` Magnus Karlsson
  0 siblings, 1 reply; 9+ messages in thread
From: Konstantinos Kaffes @ 2021-03-25  6:24 UTC (permalink / raw)
  To: xdp-newbies

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-30  6:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25  6:24 AF_XDP sockets across multiple NIC queues Konstantinos Kaffes
2021-03-25  7:24 ` Magnus Karlsson
2021-03-25 18:51   ` Konstantinos Kaffes
2021-03-26  7:36     ` Magnus Karlsson
2021-03-30  5:32       ` Konstantinos Kaffes
2021-03-30  6:17         ` Magnus Karlsson
2021-03-30  6:21           ` Magnus Karlsson
2021-03-30  6:29             ` Konstantinos Kaffes
2021-03-30  6:44               ` Magnus Karlsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).