selftests/bpf: Fix verifier test
authorAlexei Starovoitov <ast@kernel.org>
Tue, 2 Jun 2020 18:57:43 +0000 (11:57 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 2 Jun 2020 18:57:43 +0000 (11:57 -0700)
Adjust verifier test due to addition of new field.

Fixes: c3c16f2ea6d2 ("bpf: Add rx_queue_mapping to bpf_sock")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/verifier/sock.c

index 0bc51ad9e0fbeebd42da8bc67b62bd83a23eb4a8..b1aac2641498b3c78316af73523b32eff80c43a4 100644 (file)
        BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 2),
        BPF_MOV64_IMM(BPF_REG_0, 0),
        BPF_EXIT_INSN(),
-       BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, state)),
+       BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, rx_queue_mapping)),
        BPF_MOV64_IMM(BPF_REG_0, 0),
        BPF_EXIT_INSN(),
        },