]> git.baikalelectronics.ru Git - 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)
commit78a0f703ea6c4de2a88965a184026be503644c01
tree3579463e962112520fea672b9fc0b0f0b00abb62
parentb7b51d9a8f6c7a9ed7d575763681beaeb65fd767
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