This website requires JavaScript.
Explore
Help
Register
Sign In
renegade-project
/
linux-next
Watch
2
Star
0
Fork
0
You've already forked linux-next
mirror of
https://github.com/edk2-porting/linux-next.git
synced
2024-12-27 22:53:55 +08:00
Code
3cf52eb11f
linux-next
/
net
/
xdp
/
Makefile
3 lines
59 B
Makefile
Raw
Normal View
History
Unescape
Escape
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-02 19:01:24 +08:00
obj-$(CONFIG_XDP_SOCKETS)
+=
xsk.o xdp_umem.o xsk_queue.o
xsk: add user memory registration support sockopt In this commit the base structure of the AF_XDP address family is set up. Further, we introduce the abilty register a window of user memory to the kernel via the XDP_UMEM_REG setsockopt syscall. The memory window is viewed by an AF_XDP socket as a set of equally large frames. After a user memory registration all frames are "owned" by the user application, and not the kernel. v2: More robust checks on umem creation and unaccount on error. Call set_page_dirty_lock on cleanup. Simplified xdp_umem_reg. Co-authored-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-05-02 19:01:23 +08:00
Copy Permalink