diff options
Diffstat (limited to 'arch/x86/net')
-rw-r--r-- | arch/x86/net/bpf_jit_comp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c index 4ed75dd81d05..293c57b74edc 100644 --- a/arch/x86/net/bpf_jit_comp.c +++ b/arch/x86/net/bpf_jit_comp.c | |||
@@ -553,13 +553,13 @@ void bpf_jit_compile(struct sk_filter *fp) | |||
553 | } | 553 | } |
554 | break; | 554 | break; |
555 | case BPF_S_ANC_RXHASH: | 555 | case BPF_S_ANC_RXHASH: |
556 | BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, rxhash) != 4); | 556 | BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, hash) != 4); |
557 | if (is_imm8(offsetof(struct sk_buff, rxhash))) { | 557 | if (is_imm8(offsetof(struct sk_buff, hash))) { |
558 | /* mov off8(%rdi),%eax */ | 558 | /* mov off8(%rdi),%eax */ |
559 | EMIT3(0x8b, 0x47, offsetof(struct sk_buff, rxhash)); | 559 | EMIT3(0x8b, 0x47, offsetof(struct sk_buff, hash)); |
560 | } else { | 560 | } else { |
561 | EMIT2(0x8b, 0x87); | 561 | EMIT2(0x8b, 0x87); |
562 | EMIT(offsetof(struct sk_buff, rxhash), 4); | 562 | EMIT(offsetof(struct sk_buff, hash), 4); |
563 | } | 563 | } |
564 | break; | 564 | break; |
565 | case BPF_S_ANC_QUEUE: | 565 | case BPF_S_ANC_QUEUE: |