diff options
Diffstat (limited to 'arch/sparc/net')
-rw-r--r-- | arch/sparc/net/bpf_jit_comp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/sparc/net/bpf_jit_comp.c b/arch/sparc/net/bpf_jit_comp.c index c1c60c32f6dd..f33e7c7a3bf7 100644 --- a/arch/sparc/net/bpf_jit_comp.c +++ b/arch/sparc/net/bpf_jit_comp.c | |||
@@ -624,7 +624,12 @@ void bpf_jit_compile(struct bpf_prog *fp) | |||
624 | emit_and(r_A, r_TMP, r_A); | 624 | emit_and(r_A, r_TMP, r_A); |
625 | } | 625 | } |
626 | break; | 626 | break; |
627 | 627 | case BPF_LD | BPF_W | BPF_LEN: | |
628 | emit_skb_load32(len, r_A); | ||
629 | break; | ||
630 | case BPF_LDX | BPF_W | BPF_LEN: | ||
631 | emit_skb_load32(len, r_X); | ||
632 | break; | ||
628 | case BPF_LD | BPF_IMM: | 633 | case BPF_LD | BPF_IMM: |
629 | emit_loadimm(K, r_A); | 634 | emit_loadimm(K, r_A); |
630 | break; | 635 | break; |