]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc64/bpf: Support tailcalls with subprogs
authorAbhishek Dubey <adubey@linux.ibm.com>
Sat, 24 Jan 2026 07:52:19 +0000 (13:22 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Thu, 29 Jan 2026 03:36:00 +0000 (09:06 +0530)
commit2ed2d8f6fb3853daa536d79e0799cbac91fac9f5
treedf4662da535f1b56e0031228b96edeaa8f2c31d5
parent15513beeb673765c05cdd8e526ccee33906375cb
powerpc64/bpf: Support tailcalls with subprogs

Enable tailcalls support in subprogs by passing tail call count as
reference instead of value. The actual tailcall count is always
maintained in the tailcall field present in the frame of main
function (also called entry function). The tailcall field in the
stack frame of subprogs contains reference to the tailcall field
in the stack frame of main BPF program. Accordingly, rename
tail_call_cnt field in the stack layout to tail_call_info.

Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260124075223.6033-3-adubey@linux.ibm.com
arch/powerpc/net/bpf_jit.h
arch/powerpc/net/bpf_jit_comp.c
arch/powerpc/net/bpf_jit_comp64.c