diff options
author | 2020-08-28 10:26:19 +0200 | |
---|---|---|
committer | 2020-08-31 21:15:04 +0200 | |
commit | c2d3d6a474629e30428b1622af3d551f560cd1d8 (patch) | |
tree | c9230b8f507b6b88f957755903b905aaf128eeda /include/net/xdp_sock.h | |
parent | xsk: Move fill and completion rings to buffer pool (diff) | |
download | linux-c2d3d6a474629e30428b1622af3d551f560cd1d8.tar.gz linux-c2d3d6a474629e30428b1622af3d551f560cd1d8.tar.bz2 linux-c2d3d6a474629e30428b1622af3d551f560cd1d8.zip |
xsk: Move queue_id, dev and need_wakeup to buffer pool
Move queue_id, dev, and need_wakeup from the umem to the
buffer pool. This so that we in a later commit can share the umem
between multiple HW queues. There is one buffer pool per dev and
queue id, so these variables should belong to the buffer pool, not
the umem. Need_wakeup is also something that is set on a per napi
level, so there is usually one per device and queue id. So move
this to the buffer pool too.
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-6-git-send-email-magnus.karlsson@intel.com
Diffstat (limited to 'include/net/xdp_sock.h')
-rw-r--r-- | include/net/xdp_sock.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/xdp_sock.h b/include/net/xdp_sock.h index 2a284e137e9a..b052f1c005a9 100644 --- a/include/net/xdp_sock.h +++ b/include/net/xdp_sock.h @@ -26,11 +26,8 @@ struct xdp_umem { refcount_t users; struct page **pgs; u32 npgs; - u16 queue_id; - u8 need_wakeup; u8 flags; int id; - struct net_device *dev; bool zc; spinlock_t xsk_tx_list_lock; struct list_head xsk_tx_list; |