]> asedeno.scripts.mit.edu Git - linux.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)
commitb9b6b68e8abd101be6eb5330e4999218c696d1e8
treeaabf3247f651eeea5c1e9ed751435ab2ba5bc1d6
parent423f38329d267969130fb6f2c685f73d72687558
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