Lines Matching defs:which
6534 static int filter_length(int which)
6539 if (tests[which].fill_helper)
6540 return tests[which].u.ptr.len;
6542 fp = tests[which].u.insns;
6550 static void *filter_pointer(int which)
6552 if (tests[which].fill_helper)
6553 return tests[which].u.ptr.insns;
6555 return tests[which].u.insns;
6558 static struct bpf_prog *generate_filter(int which, int *err)
6560 __u8 test_type = tests[which].aux & TEST_TYPE_MASK;
6561 unsigned int flen = filter_length(which);
6562 void *fptr = filter_pointer(which);
6572 if (tests[which].aux & FLAG_EXPECTED_FAIL) {
6573 if (*err == tests[which].expected_errcode) {
6606 fp->aux->stack_depth = tests[which].stack_depth;
6623 static void release_filter(struct bpf_prog *fp, int which)
6625 __u8 test_type = tests[which].aux & TEST_TYPE_MASK;
6668 * NOTE: Several sub-tests may be present, in which case
6882 * mimic bpf_skb_proto_4_to_6, which resets gso_segs and assigns a