xsk: add Rx queue setup and mmap support
Another setsockopt (XDP_RX_QUEUE) is added to let the process allocate a queue, where the kernel can pass completed Rx frames from the kernel to user process. The mmapping of the queue is done using the XDP_PGOFF_RX_QUEUE offset. Signed-off-by:Björn Töpel <bjorn.topel@intel.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Showing
- include/net/xdp_sock.h 4 additions, 0 deletionsinclude/net/xdp_sock.h
- include/uapi/linux/if_xdp.h 16 additions, 0 deletionsinclude/uapi/linux/if_xdp.h
- net/xdp/xsk.c 32 additions, 9 deletionsnet/xdp/xsk.c
- net/xdp/xsk_queue.c 9 additions, 2 deletionsnet/xdp/xsk_queue.c
- net/xdp/xsk_queue.h 1 addition, 1 deletionnet/xdp/xsk_queue.h
Loading
Please register or sign in to comment