OpenCloudOS-Kernel/net/xdp
Magnus Karlsson 423f38329d xsk: add umem fill queue support and mmap
Here, we add another setsockopt for registered user memory (umem)
called XDP_UMEM_FILL_QUEUE. Using this socket option, the process can
ask the kernel to allocate a queue (ring buffer) and also mmap it
(XDP_UMEM_PGOFF_FILL_QUEUE) into the process.

The queue is used to explicitly pass ownership of umem frames from the
user process to the kernel. These frames will in a later patch be
filled in with Rx packet data by the kernel.

v2: Fixed potential crash in xsk_mmap.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-05-03 15:55:23 -07:00
..
Kconfig
Makefile xsk: add umem fill queue support and mmap 2018-05-03 15:55:23 -07:00
xdp_umem.c xsk: add umem fill queue support and mmap 2018-05-03 15:55:23 -07:00
xdp_umem.h xsk: add umem fill queue support and mmap 2018-05-03 15:55:23 -07:00
xdp_umem_props.h xsk: add user memory registration support sockopt 2018-05-03 15:55:23 -07:00
xsk.c xsk: add umem fill queue support and mmap 2018-05-03 15:55:23 -07:00
xsk_queue.c xsk: add umem fill queue support and mmap 2018-05-03 15:55:23 -07:00
xsk_queue.h xsk: add umem fill queue support and mmap 2018-05-03 15:55:23 -07:00