Skip to content

xsk: struct diet and cleanups

Maciej Fijalkowski bpf netdev 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (net)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyApplied 6/6
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* fix build issues on patch 1 (Daniel, CI)
* be smarter about xsk_buff_pool layout in patch 4 (Vadim)

Patches in v2 All 6 applied

#Subject and filesSizeRepliesApplied
1/6xsk: get rid of xdp_buff_xsk::xskb_list_nodeinclude/net/xdp_sock_drv.h include/net/xsk_buff_pool.h net/xdp/xsk.c +1 more+9 -110 repliesApplied
2/6xsk: s/free_list_node/list_nodeinclude/net/xdp_sock_drv.h include/net/xsk_buff_pool.h net/xdp/xsk.c +1 more+17 -170 repliesApplied
3/6xsk: get rid of xdp_buff_xsk::orig_addrinclude/net/xsk_buff_pool.h net/xdp/xsk.c net/xdp/xsk_buff_pool.c+15 -100 repliesApplied
4/6xsk: carry a copy of xdp_zc_max_segs within xsk_buff_poolinclude/net/xsk_buff_pool.h net/xdp/xsk_buff_pool.c net/xdp/xsk_queue.h+3 -10 repliesApplied
5/6xsk: wrap duplicated code to functionnet/xdp/xsk_buff_pool.c+18 -160 repliesApplied
6/6xsk: use xsk_buff_pool directly for cq functionsnet/xdp/xsk.c+16 -160 repliesApplied

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMagnus Karlsson
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/6] xsk: struct diet and cleanups

Hi all,

this modest work brings back size of xdp_buff_xsk back to two cache lines which in turn improves performance. Interestingly I was able to observe on ice with HW rings sized to 512 around 12% better performance when running xdpsock in l2fwd scenario. First three patches are behind this. Other setups were not that impressive, I believe results may vary based on the underlying CPU. Bottom line is that shrinking this struct takes off a bit of work from CPU's shoulders.

Other three patches are rather cleanups.

Thanks,
Maciej

v1->v2:
* fix build issues on patch 1 (Daniel, CI)
* be smarter about xsk_buff_pool layout in patch 4 (Vadim)

Maciej Fijalkowski (6):
xsk: get rid of xdp_buff_xsk::xskb_list_node
xsk: s/free_list_node/list_node
xsk: get rid of xdp_buff_xsk::orig_addr
xsk: carry a copy of xdp_zc_max_segs within xsk_buff_pool
xsk: wrap duplicated code to function
xsk: use xsk_buff_pool directly for cq functions

 include/net/xdp_sock_drv.h  | 14 +++++-----
 include/net/xsk_buff_pool.h | 23 +++++++++-------
 net/xdp/xsk.c               | 38 +++++++++++++-------------
 net/xdp/xsk_buff_pool.c     | 54 ++++++++++++++++++++-----------------
 net/xdp/xsk_queue.h         |  2 +-
 5 files changed, 69 insertions(+), 62 deletions(-)
Signature · 1 line
2.34.1