linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/3] add batched ops for percpu array
@ 2021-04-12 19:39 Pedro Tammela
  2021-04-12 19:39 ` [PATCH bpf-next v3 1/3] bpf: add batched ops support " Pedro Tammela
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pedro Tammela @ 2021-04-12 19:39 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Shuah Khan, Pedro Tammela, Matthieu Baerts,
	David Verbeiren, open list:BPF (Safe dynamic programs and tools),
	open list:BPF (Safe dynamic programs and tools),
	open list, open list:KERNEL SELFTEST FRAMEWORK

This patchset introduces batched operations for the per-cpu variant of
the array map.

It also removes the percpu macros from 'bpf_util.h'. This change was
suggested by Andrii in a earlier iteration of this patchset.

The tests were updated to reflect all the new changes.

v2 -> v3:
- Remove percpu macros as suggested by Andrii
- Update tests that used the per cpu macros

v1 -> v2:
- Amended a more descriptive commit message

Pedro Tammela (3):
  bpf: add batched ops support for percpu array
  bpf: selftests: remove percpu macros from bpf_util.h
  bpf: selftests: update array map tests for per-cpu batched ops

 kernel/bpf/arraymap.c                         |   2 +
 tools/testing/selftests/bpf/bpf_util.h        |   7 --
 .../bpf/map_tests/array_map_batch_ops.c       | 110 +++++++++++++-----
 .../bpf/map_tests/htab_map_batch_ops.c        |  71 ++++++-----
 .../selftests/bpf/prog_tests/map_init.c       |   9 +-
 tools/testing/selftests/bpf/test_maps.c       |  84 +++++++------
 6 files changed, 171 insertions(+), 112 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-12 21:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 19:39 [PATCH bpf-next v3 0/3] add batched ops for percpu array Pedro Tammela
2021-04-12 19:39 ` [PATCH bpf-next v3 1/3] bpf: add batched ops support " Pedro Tammela
2021-04-12 19:40 ` [PATCH bpf-next v3 2/3] bpf: selftests: remove percpu macros from bpf_util.h Pedro Tammela
2021-04-12 19:40 ` [PATCH bpf-next v3 3/3] bpf: selftests: update array map tests for per-cpu batched ops Pedro Tammela
2021-04-12 21:49   ` Martin KaFai Lau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).