diff options
author | Magnus Karlsson | 2020-08-28 10:26:21 +0200 |
---|---|---|
committer | Daniel Borkmann | 2020-08-31 21:15:04 +0200 |
commit | 7f7ffa4e9c38f01d380ed9df6adb238fd5e6eea5 (patch) | |
tree | 3579463e962112520fea672b9fc0b0f0b00abb62 /include/net/xdp_sock.h | |
parent | a5aa8e529e3667eb377ec132d4b4926dee065a45 (diff) |
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
Diffstat (limited to 'include/net/xdp_sock.h')
-rw-r--r-- | include/net/xdp_sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/xdp_sock.h b/include/net/xdp_sock.h index 9a61d05ec132..126d24364b5a 100644 --- a/include/net/xdp_sock.h +++ b/include/net/xdp_sock.h @@ -18,6 +18,7 @@ struct xsk_queue; struct xdp_buff; struct xdp_umem { + void *addrs; u64 size; u32 headroom; u32 chunk_size; |