Skip to content

"map_extra" and bloom filter fixups

Joanne Koong bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

v1 -> v2 from the cover letter

* In prog_tests/bloom_filter_map: remove unneeded line break, also change the inner_map_test to use bpf_create_map instead of bpf_create_map_xattr.
* Add acked-bys to commit messages

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf: Bloom filter map naming fixupskernel/bpf/bloom_filter.c+26 -230 replies
2/3bpf: Add alignment padding for "map_extra" + consolidate holesinclude/linux/bpf.h include/uapi/linux/bpf.h tools/include/uapi/linux/bpf.h+5 -30 replies
3/3selftests/bpf: Add bloom map success test for userspace callstools/testing/selftests/bpf/prog_tests/bloom_filter_map.c+33 -260 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYonghong SongMartin KaFai Lau
SeriesA-b
1/3A-b
2/3A-b
3/3A-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 bpf-next 0/3] "map_extra" and bloom filter fixups

There are 3 patches in this patchset:

1/3 - Bloom filter naming fixups (kernel/bpf/bloom_filter.c)

2/3 - Add alignment padding for map_extra, rearrange fields in bpf_map struct to consolidate holes

3/3 - Bloom filter tests (prog_tests/bloom_filter_map):
Add test for successful userspace calls, some refactoring to use bpf_create_map instead of bpf_create_map_xattr

v1 -> v2:
* In prog_tests/bloom_filter_map: remove unneeded line break, also change the inner_map_test to use bpf_create_map instead of bpf_create_map_xattr.
* Add acked-bys to commit messages

Joanne Koong (3):
bpf: Bloom filter map naming fixups
bpf: Add alignment padding for "map_extra" + consolidate holes selftests/bpf: Add bloom map success test for userspace calls

 include/linux/bpf.h                           |  6 +-
 include/uapi/linux/bpf.h                      |  1 +
 kernel/bpf/bloom_filter.c                     | 49 +++++++--------
 tools/include/uapi/linux/bpf.h                |  1 +
 .../bpf/prog_tests/bloom_filter_map.c         | 59 +++++++++++--------
 5 files changed, 64 insertions(+), 52 deletions(-)
Signature · 1 line
2.30.2