All of lore.kernel.org
 help / color / mirror / Atom feed
* Talk about AF_XDP support multithread concurrently receive packet
@ 2020-06-23  6:20 Yahui Chen
  2020-06-23  7:27 ` Björn Töpel
  0 siblings, 1 reply; 3+ messages in thread
From: Yahui Chen @ 2020-06-23  6:20 UTC (permalink / raw)
  To: bpf

I have make an issue for the libbpf in github, issue number 163.

Andrii suggest me sending a mail here. So ,I paste out the content of the issue:

Currently, libbpf do not support concurrently receive pkts using AF_XDP.

For example: I create 4 af_xdp sockets on nic's ring 0. Four sockets
receiving packets concurrently can't work correctly because the API of
cq `xsk_ring_prod__reserve` and `xsk_ring_prod__submit` don't support
concurrence.

So, my question is why libbpf was designed non-concurrent mode, is the
limit of kernel or other reason? I want to change the code to support
concurrent receive pkts, therefore I want to find out whether this is
theoretically supported.

Thx.

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

end of thread, other threads:[~2020-06-23 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23  6:20 Talk about AF_XDP support multithread concurrently receive packet Yahui Chen
2020-06-23  7:27 ` Björn Töpel
2020-06-23 11:27   ` Yahui Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.