[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ+HfNi=kDP--Vuuphdn4YhZDbBfoNXzcPDDaDo7vdvuJ0D1=Q@mail.gmail.com>
Date: Tue, 10 Dec 2019 06:31:28 +0100
From: Björn Töpel <bjorn.topel@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>,
Alexei Starovoitov <ast@...nel.org>,
Netdev <netdev@...r.kernel.org>
Cc: linux-riscv@...ts.infradead.org, bpf <bpf@...r.kernel.org>
Subject: Re: [PATCH bpf-next 2/8] riscv, bpf: add support for far branching
On Mon, 9 Dec 2019 at 18:31, Björn Töpel <bjorn.topel@...il.com> wrote:
>
> This commit adds branch relaxation to the BPF JIT, and with that
> support for far (offset greater than 12b) branching.
>
> The branch relaxation requires more than two passes to converge. For
> most programs it is three passes, but for larger programs it can be
> more.
>
> Signed-off-by: Björn Töpel <bjorn.topel@...il.com>
> ---
> arch/riscv/net/bpf_jit_comp.c | 352 ++++++++++++++++++----------------
[...]
> +}
> +
> +static void emit_branch(u8 cond, u8 rd, u8 rs, int insn, int rvoff,
The "insn" is not used. I'll do a respin.
Powered by blists - more mailing lists