sparc: bpf_jit: add support for BPF_LD(X) | BPF_LEN instructions
authorAlexei Starovoitov <ast@plumgrid.com>
Tue, 23 Sep 2014 21:36:11 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 20:52:09 +0000 (16:52 -0400)
commitcec08315190a4461a369d47041a510d104a5d2a2
treea117d1ff3c707fe9d1d6477bb0459951ac38d487
parent0a29b3dafbb2fc46421cc2950523814c7c6c8bfb
sparc: bpf_jit: add support for BPF_LD(X) | BPF_LEN instructions

BPF_LD | BPF_W | BPF_LEN instruction is occasionally used by tcpdump
and present in 11 tests in lib/test_bpf.c
Teach sparc JIT compiler to emit it.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/net/bpf_jit_comp.c