diff options
author | Daniel Borkmann <dxchgb@gmail.com> | 2012-09-24 07:57:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-27 18:04:35 -0400 |
commit | aa99521eed6b77628f6f54ff6b2903f4130c0808 (patch) | |
tree | 9d1f6313e3a09f79f98300d4a863becf9c8ef8b3 /arch/sparc/net | |
parent | 871d1d6b59802adfd42fd22c82ec419bc8fd2f10 (diff) |
sparc: bpf_jit_comp: add XOR instruction for BPF JIT JIT
This patch is a follow-up for patch "filter: add XOR instruction for use
with X/K" that implements BPF SPARC JIT parts for the BPF XOR operation.
Signed-off-by: Daniel Borkmann <daniel.borkmann@tik.ee.ethz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/net')
-rw-r--r-- | arch/sparc/net/bpf_jit_comp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/net/bpf_jit_comp.c b/arch/sparc/net/bpf_jit_comp.c index e9073e9501b3..28368701ef79 100644 --- a/arch/sparc/net/bpf_jit_comp.c +++ b/arch/sparc/net/bpf_jit_comp.c | |||
@@ -464,8 +464,12 @@ void bpf_jit_compile(struct sk_filter *fp) | |||
464 | emit_alu_K(OR, K); | 464 | emit_alu_K(OR, K); |
465 | break; | 465 | break; |
466 | case BPF_S_ANC_ALU_XOR_X: /* A ^= X; */ | 466 | case BPF_S_ANC_ALU_XOR_X: /* A ^= X; */ |
467 | case BPF_S_ALU_XOR_X: | ||
467 | emit_alu_X(XOR); | 468 | emit_alu_X(XOR); |
468 | break; | 469 | break; |
470 | case BPF_S_ALU_XOR_K: /* A ^= K */ | ||
471 | emit_alu_K(XOR, K); | ||
472 | break; | ||
469 | case BPF_S_ALU_LSH_X: /* A <<= X */ | 473 | case BPF_S_ALU_LSH_X: /* A <<= X */ |
470 | emit_alu_X(SLL); | 474 | emit_alu_X(SLL); |
471 | break; | 475 | break; |