bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v5 0/2] add batched ops for percpu array
@ 2021-04-24 21:45 Pedro Tammela
  2021-04-24 21:45 ` [PATCH bpf-next v5 1/2] bpf: add batched ops support " Pedro Tammela
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pedro Tammela @ 2021-04-24 21:45 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, David Verbeiren,
	Matthieu Baerts, netdev, bpf, linux-kernel, linux-kselftest

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

Also updates the batch ops test for arrays.

v4 -> v5:
- Revert removal of percpu macros

v3 -> v4:
- Prefer 'calloc()' over 'malloc()' on batch ops tests
- Add missing static keyword in a couple of test functions
- 'offset' to 'cpu_offset' as suggested by Martin

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 (2):
  bpf: add batched ops support for percpu array
  bpf: selftests: update array map tests for per-cpu batched ops

 kernel/bpf/arraymap.c                         |   2 +
 .../bpf/map_tests/array_map_batch_ops.c       | 104 +++++++++++++-----
 2 files changed, 77 insertions(+), 29 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-04-27 23:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-24 21:45 [PATCH bpf-next v5 0/2] add batched ops for percpu array Pedro Tammela
2021-04-24 21:45 ` [PATCH bpf-next v5 1/2] bpf: add batched ops support " Pedro Tammela
2021-04-24 21:45 ` [PATCH bpf-next v5 2/2] bpf: selftests: update array map tests for per-cpu batched ops Pedro Tammela
2021-04-27 23:20 ` [PATCH bpf-next v5 0/2] add batched ops for percpu array patchwork-bot+netdevbpf

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).