OSDN Git Service

xsk: Move fill and completion rings to buffer pool
authorMagnus Karlsson <magnus.karlsson@intel.com>
Fri, 28 Aug 2020 08:26:18 +0000 (10:26 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 31 Aug 2020 19:15:04 +0000 (21:15 +0200)
commit7361f9c3d71955c624fdad5676c99fc88a8249e9
treee4b32a5a66952ce1ca37a0ec74b304cc552e9d77
parent1c1efc2af158869795d3334a12fed2afd9c51539
xsk: Move fill and completion rings to buffer pool

Move the fill and completion rings from the umem to the buffer
pool. This so that we in a later commit can share the umem
between multiple HW queue ids. In this case, we need one fill and
completion ring per queue id. As the buffer pool is per queue id
and napi id this is a natural place for it and one umem
struture can be shared between these buffer pools.

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-5-git-send-email-magnus.karlsson@intel.com
include/net/xdp_sock.h
include/net/xsk_buff_pool.h
net/xdp/xdp_umem.c
net/xdp/xsk.c
net/xdp/xsk_buff_pool.c
net/xdp/xsk_diag.c