xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

Does AF_XDP support multithread rx packet with a nic ring?

Open ChenYahui2019 opened this issue 4 years ago • 1 comments

I created 4 AF_XDP sockets sharing one umen with XDP_SHARED_UMEM. Fourt threads only doing rx_drop pkts for each socket. But it seems AF_XDP not support concurrent receiving packets.

So, does AF_XDP support concurrent rx pkts and why?

ChenYahui2019 avatar Jun 19 '20 11:06 ChenYahui2019

Of course, it support.

Attention:

  1. nic queue id
  2. bpf_redirect_map(&xsks_map, af_xdp_socket_index, 0), af_xdp_socket_index should be corresponding to the correct socket.

hi-glenn avatar Dec 22 '20 07:12 hi-glenn