Skip to content

xsk: XSKMAP lookup improvements

Maciej Fijalkowski bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xsk: store struct xdp_sock as a flexible array member of the XSKMAPkernel/bpf/xskmap.c+25 -321 reply
2/2xsk: implement map_gen_lookup() callback for XSKMAPkernel/bpf/xskmap.c+17 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] xsk: XSKMAP lookup improvements

Hi,

This small set consists of two patches from Bjorn and myself which are optimizing the XSKMAP lookups. In first patch, Bjorn converts the array of pointers to struct xdp_sock to the flexible array member of XSKMAP itself. Second patch, based on Bjorn's work, implements the map_gen_lookup() for XSKMAP.

Based on the XDP program from tools/lib/bpf/xsk.c where bpf_map_lookup_elem() is explicitly called, this work yields the 5% improvement for xdpsock's rxdrop scenario.

Thanks!

Björn Töpel (1):
xsk: store struct xdp_sock as a flexible array member of the XSKMAP

Maciej Fijalkowski (1):
xsk: implement map_gen_lookup() callback for XSKMAP

 kernel/bpf/xskmap.c | 74 +++++++++++++++++++++++++--------------------
 1 file changed, 42 insertions(+), 32 deletions(-)
Signature · 1 line
2.20.1