Re: [dpdk-dev] [PATCH 5/5] bpf: x86 JIT support for packet data loadinstructions

2020-05-24 Thread Ananyev, Konstantin
> > > > +/* > > + * helper function, used by emit_ld_mbuf(). > > + * generates code for 'fast_path': > > + * calculate load offset and check is it inside first packet segment. > > + */ > > +static void > > +emit_ldmb_fast_path(struct bpf_jit_state *st, const uint32_t > > rg[EBPF_REG_7], > > + uin

Re: [dpdk-dev] [PATCH 5/5] bpf: x86 JIT support for packet data loadinstructions

2020-05-24 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Monday, May 18, 2020 5:53 PM > > Make x86 JIT to generate native code for > (BPF_ABS | | BPF_LD) and (BPF_IND | | BPF_LD) > instructions. > > Signed-off-by: Konstantin Ananyev > --- > lib/librte_bpf/bpf_jit_x86.