diff options
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/bpf/test_verifier.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/bpf/test_verifier.c b/samples/bpf/test_verifier.c index df6dbb6576f6..75d561f9fd6a 100644 --- a/samples/bpf/test_verifier.c +++ b/samples/bpf/test_verifier.c | |||
| @@ -658,6 +658,15 @@ static struct bpf_test tests[] = { | |||
| 658 | BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, | 658 | BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, |
| 659 | offsetof(struct __sk_buff, queue_mapping)), | 659 | offsetof(struct __sk_buff, queue_mapping)), |
| 660 | BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0), | 660 | BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0), |
| 661 | BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, | ||
| 662 | offsetof(struct __sk_buff, protocol)), | ||
| 663 | BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0), | ||
| 664 | BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, | ||
| 665 | offsetof(struct __sk_buff, vlan_present)), | ||
| 666 | BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0), | ||
| 667 | BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, | ||
| 668 | offsetof(struct __sk_buff, vlan_tci)), | ||
| 669 | BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0), | ||
| 661 | BPF_EXIT_INSN(), | 670 | BPF_EXIT_INSN(), |
| 662 | }, | 671 | }, |
| 663 | .result = ACCEPT, | 672 | .result = ACCEPT, |
