]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0aa390692e5a3147e95bd5ba8b0499d4f4060775
treeaf95ebd390dd699a4e21c8e33dbe7b5f5a77ceab
parentcdfbf9a4d15d5a7e57eea54c27fd32285ca33d14
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