Thread (4 messages) 4 messages, 2 authors, 2021-04-27
STALE1909d
Revisions (3)
  1. v3 [diff vs current]
  2. v4 [diff vs current]
  3. v5 current

[PATCH bpf-next v5 0/2] add batched ops for percpu array

From: Pedro Tammela <hidden>
Date: 2021-04-24 21:45:44
Also in: bpf, linux-kselftest, lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help