linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v4 0/2] bpf: Add kfunc bpf_strcasecmp()
@ 2025-09-02 23:46 Rong Tao
  0 siblings, 0 replies; only message in thread
From: Rong Tao @ 2025-09-02 23:46 UTC (permalink / raw)
  To: yonghong.song, andrii, ast, vmalik
  Cc: rtoax, Daniel Borkmann, Martin KaFai Lau, Eduard Zingerman,
	Song Liu, John Fastabend, KP Singh, Stanislav Fomichev, Hao Luo,
	Jiri Olsa, Mykola Lysenko, Shuah Khan, Rong Tao,
	open list:BPF [GENERAL] (Safe Dynamic Programs and Tools),
	open list, open list:KERNEL SELFTEST FRAMEWORK

Kfunc already support bpf_strcmp, this patchset introduce bpf_strcasecmp
and add some selftests.

Rong Tao (2):
  bpf: add bpf_strcasecmp kfunc
  selftests/bpf: Test kfunc bpf_strcasecmp

 kernel/bpf/helpers.c                          | 68 +++++++++++++------
 .../selftests/bpf/prog_tests/string_kfuncs.c  |  1 +
 .../bpf/progs/string_kfuncs_failure1.c        |  6 ++
 .../bpf/progs/string_kfuncs_failure2.c        |  1 +
 .../bpf/progs/string_kfuncs_success.c         |  5 ++
 5 files changed, 61 insertions(+), 20 deletions(-)

---
v4: __bpf_strcasecmp should be static function;
v3: Update prog_tests/string_kfuncs.c for "strcasecmp";
    https://lore.kernel.org/lkml/tencent_0E0C830021A02CBCCB6D95AE57CFD100C407@qq.com/
v2: Remove __ign prefix from __bpf_strcasecmp and add E2BIG failure test;
    https://lore.kernel.org/lkml/tencent_8646158457D4511C447C833B21B3ACF6CB07@qq.com/
v1: https://lore.kernel.org/lkml/tencent_5AE811A28781BE106AD6CDE59F4ADD2BFA06@qq.com/
-- 
2.51.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-02 23:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-02 23:46 [PATCH bpf-next v4 0/2] bpf: Add kfunc bpf_strcasecmp() Rong Tao

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