]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: add Rx queue setup and mmap support
authorBjörn Töpel <bjorn.topel@intel.com>
Wed, 2 May 2018 11:01:25 +0000 (13:01 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 May 2018 22:55:23 +0000 (15:55 -0700)
commit6ce68fd805437a104e1dd819c9e8e37ad8b5f22f
treeaabf3247f651eeea5c1e9ed751435ab2ba5bc1d6
parent981d292780423ed6f756d0be4de1a2d19a0648f2
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>
include/net/xdp_sock.h
include/uapi/linux/if_xdp.h
net/xdp/xsk.c
net/xdp/xsk_queue.c
net/xdp/xsk_queue.h