From: Alexei Starovoitov Date: Wed, 21 Aug 2024 17:37:52 +0000 (-0700) Subject: Merge branch 'support-passing-bpf-iterator-to-kfuncs' X-Git-Tag: v6.12-rc1~112^2~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffc41ce5cf09f8d7113aca98e68f6e11956c0eab;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'support-passing-bpf-iterator-to-kfuncs' Andrii Nakryiko says: ==================== Support passing BPF iterator to kfuncs Add support for passing BPF iterator state to any kfunc. Such kfunc has to declare such argument with valid `struct bpf_iter_ *` type and should use "__iter" suffix in argument name, following the established suffix-based convention. We add a simple test/demo iterator getter in bpf_testmod. ==================== Link: https://lore.kernel.org/r/20240808232230.2848712-1-andrii@kernel.org Signed-off-by: Alexei Starovoitov --- ffc41ce5cf09f8d7113aca98e68f6e11956c0eab