xsk: add Tx queue setup and mmap support
authorMagnus Karlsson <magnus.karlsson@intel.com>
Wed, 2 May 2018 11:01:32 +0000 (13:01 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 May 2018 22:55:24 +0000 (15:55 -0700)
commitf61459030ec7fffdaa3c462cc0f728eef11b4d05
treeaf95ebd390dd699a4e21c8e33dbe7b5f5a77ceab
parentfe2308328cd2f26ebc986f543796e7d13ae00bc4
xsk: add Tx queue setup and mmap support

Another setsockopt (XDP_TX_QUEUE) is added to let the process allocate
a queue, where the user process can pass frames to be transmitted by
the kernel.

The mmapping of the queue is done using the XDP_PGOFF_TX_QUEUE offset.

Signed-off-by: Magnus Karlsson <magnus.karlsson@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