Skip to content

bpf: Improve LRU map lookup performance

Martin KaFai Lau netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf: Add lru_hash_lookup performance testsamples/bpf/map_perf_test_kern.c samples/bpf/map_perf_test_user.c+112 -92 replies
2/3bpf: Inline LRU map lookupkernel/bpf/hashtab.c+19 -02 replies
3/3bpf: Only set node->ref = 1 if it has not been setkernel/bpf/bpf_lru_list.h kernel/bpf/hashtab.c+8 -22 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDaniel BorkmannAlexei Starovoitov
1/3A-b A-b
2/3A-b A-b
3/3A-b A-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/3] bpf: Improve LRU map lookup performance

This patchset improves the lookup performance of the LRU map. Please see individual patch for details.

Martin KaFai Lau (3):
bpf: Add lru_hash_lookup performance test
bpf: Inline LRU map lookup
bpf: Only set node->ref = 1 if it has not been set

 kernel/bpf/bpf_lru_list.h        |  3 +-
 kernel/bpf/hashtab.c             | 24 +++++++++++++
 samples/bpf/map_perf_test_kern.c | 44 +++++++++++++++++++----
 samples/bpf/map_perf_test_user.c | 77 ++++++++++++++++++++++++++++++++++++++--
 4 files changed, 138 insertions(+), 10 deletions(-)
Signature · 1 line
2.9.5