xdp-tutorial
                                
                                
                                
                                    xdp-tutorial copied to clipboard
                            
                            
                            
                        Does AF_XDP support multithread rx packet with a nic ring?
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?
Of course, it support.
Attention:
- nic queue id
 - bpf_redirect_map(&xsks_map, af_xdp_socket_index, 0), af_xdp_socket_index should be corresponding to the correct socket.