bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v4 0/2] bpf: add bpf_dynptr_memset() kfunc
@ 2025-07-02 21:03 Ihor Solodrai
  2025-07-02 21:03 ` [PATCH bpf-next v4 1/2] " Ihor Solodrai
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ihor Solodrai @ 2025-07-02 21:03 UTC (permalink / raw)
  To: bpf; +Cc: andrii, ast, eddyz87, mykyta.yatsenko5, mykolal, kernel-team

Implement bpf_dynptr_memset() kfunc and add tests for it.

v3->v4:
  * do error checks after slice, nits
v2->v3:
  * nits and slow-path loop rewrite (Andrii)
  * simplify xdp chunks test (Mykyta) 
v1->v2:
  * handle non-linear buffers with bpf_dynptr_write()
  * change function signature to include offset arg
  * add more test cases

v3: https://lore.kernel.org/bpf/20250630212113.573097-1-isolodrai@meta.com/
v2: https://lore.kernel.org/bpf/20250624205240.1311453-1-isolodrai@meta.com/
v1: https://lore.kernel.org/bpf/20250618223310.3684760-1-isolodrai@meta.com/

Ihor Solodrai (2):
  bpf: add bpf_dynptr_memset() kfunc
  selftests/bpf: add test cases for bpf_dynptr_memset()

 kernel/bpf/helpers.c                          |  47 ++++++
 .../testing/selftests/bpf/prog_tests/dynptr.c |   8 +
 .../selftests/bpf/progs/dynptr_success.c      | 158 ++++++++++++++++++
 3 files changed, 213 insertions(+)

-- 
2.47.1


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

end of thread, other threads:[~2025-07-03 22:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 21:03 [PATCH bpf-next v4 0/2] bpf: add bpf_dynptr_memset() kfunc Ihor Solodrai
2025-07-02 21:03 ` [PATCH bpf-next v4 1/2] " Ihor Solodrai
2025-07-02 21:03 ` [PATCH bpf-next v4 2/2] selftests/bpf: add test cases for bpf_dynptr_memset() Ihor Solodrai
2025-07-03 15:34   ` Mykyta Yatsenko
2025-07-03 22:30 ` [PATCH bpf-next v4 0/2] bpf: add bpf_dynptr_memset() kfunc 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).