[PATCH bpf-next 2/3] bpf, riscv: add fsession support for trampolines

Menglong Dong menglong.dong at linux.dev
Fri Feb 6 04:07:35 PST 2026


On 2026/2/6 19:22, Björn Töpel wrote:
> On Tue, 3 Feb 2026 at 06:53, Menglong Dong <menglong8.dong at gmail.com> wrote:
> 
> > diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_comp64.c
> > index e4f45e2e7e2f..f10418ff6a9b 100644
> > --- a/arch/riscv/net/bpf_jit_comp64.c
> > +++ b/arch/riscv/net/bpf_jit_comp64.c
> 
> > @@ -1042,10 +1067,14 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im,
> >          *                  [ ...               ]
> >          * FP - args_off    [ arg1              ]
> >          *
> > -        * FP - nregs_off   [ regs count        ]
> > +        * FP - func_meta_off [ regs count, etc ]  always
> 
> Nit: Please remove the "always" comment. It's not helpful.

Ah, sorry that I send out the V2 before I saw this email. Let
me spin a V3.

Thanks!
Menglong Dong

> 
> 







More information about the linux-riscv mailing list