summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAbhishek Dubey <adubey@linux.ibm.com>2026-01-24 13:22:18 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-01-29 09:06:00 +0530
commit15513beeb673765c05cdd8e526ccee33906375cb (patch)
treeac55affb7d23a2a46a5badd22007b07350b05943 /include
parent815a8d2feb5615ae7f0b5befd206af0b0160614c (diff)
powerpc64/bpf: Moving tail_call_cnt to bottom of frame
To support tailcalls in subprogs, tail_call_cnt needs to be on the BPF trampoline stack frame. In a regular BPF program or subprog stack frame, the position of tail_call_cnt is after the NVR save area (BPF_PPC_STACK_SAVE). To avoid complex logic in deducing offset for tail_call_cnt, it has to be kept at the same offset on the trampoline frame as well. But doing that wastes nearly all of BPF_PPC_STACK_SAVE bytes on the BPF trampoline stack frame as the NVR save area is not the same for BPF trampoline and regular BPF programs. Address this by moving tail_call_cnt to the bottom of the frame. This change avoids the need to account for BPF_PPC_STACK_SAVE bytes in the BPF trampoline stack frame when support for tailcalls in BPF subprogs is added later. Also, this change makes offset calculation of tail_call_cnt field simpler all across. 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-2-adubey@linux.ibm.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions