]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
xsk: Move addrs from buffer pool to umem
authorMagnus Karlsson <magnus.karlsson@intel.com>
Fri, 28 Aug 2020 08:26:21 +0000 (10:26 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 31 Aug 2020 19:15:04 +0000 (21:15 +0200)
commit7f7ffa4e9c38f01d380ed9df6adb238fd5e6eea5
tree3579463e962112520fea672b9fc0b0f0b00abb62
parenta5aa8e529e3667eb377ec132d4b4926dee065a45
xsk: Move addrs from buffer pool to umem

Replicate the addrs pointer in the buffer pool to the umem. This mapping
will be the same for all buffer pools sharing the same umem. In the
buffer pool we leave the addrs pointer for performance reasons.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Link: https://lore.kernel.org/bpf/1598603189-32145-8-git-send-email-magnus.karlsson@intel.com
include/net/xdp_sock.h
net/xdp/xdp_umem.c
net/xdp/xsk_buff_pool.c