Skip to content

Commit 7cec0b9

Browse files
author
Alexei Starovoitov
committed
selftests/bpf: Fix verifier test
Adjust verifier test due to addition of new field. Fixes: c3c16f2 ("bpf: Add rx_queue_mapping to bpf_sock") Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 9a5f25a commit 7cec0b9

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/bpf/verifier

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/verifier/sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 2),
223223
BPF_MOV64_IMM(BPF_REG_0, 0),
224224
BPF_EXIT_INSN(),
225-
BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, state)),
225+
BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, rx_queue_mapping)),
226226
BPF_MOV64_IMM(BPF_REG_0, 0),
227227
BPF_EXIT_INSN(),
228228
},

0 commit comments

Comments
 (0)