Messages in this thread | | | From | Andy Lutomirski <> | Date | Wed, 13 Aug 2014 14:38:49 -0700 | Subject | Re: [PATCH RFC v4 net-next 01/26] net: filter: add "load 64-bit immediate" eBPF instruction |
| |
On Wed, Aug 13, 2014 at 2:37 PM, Alexei Starovoitov <ast@plumgrid.com> wrote: > I don't need an instruction that loads low 32-bit. It already exists. > It's called 'mov'. > I'm going to try encoding: > insn[0].code = LD | IMM | DW > insn[1].code = 0 > zero is invalid opcode, so it's your 'continuation'. > and it is still single 16-byte instructions without any interpreter overhead.
Works for me.
--Andy
| |