Talk about AF_XDP support multithread concurrently receive packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux