Lines Matching defs:family
50 static int create_ktls_pairs(int family, int sotype, int *c, int *p)
54 err = create_pair(family, sotype, c, p);
64 static void test_sockmap_ktls_update_fails_when_sock_has_ulp(int family, int map)
72 switch (family) {
82 PRINT_FAIL("unsupported socket family %d", family);
86 s = socket(family, SOCK_STREAM, 0);
120 static const char *fmt_test_name(const char *subtest_name, int family,
134 static void test_sockmap_ktls_offload(int family, int sotype)
141 err = create_ktls_pairs(family, sotype, &c, &p);
163 static void test_sockmap_ktls_tx_cork(int family, int sotype, bool push)
178 err = create_pair(family, sotype, &c, &p);
243 static void test_sockmap_ktls_tx_no_buf(int family, int sotype, bool push)
259 err = create_pair(family, sotype, &c, &p);
317 static void test_sockmap_ktls_tx_pop(int family, int sotype)
331 err = create_pair(family, sotype, &c, &p);
406 static void run_tests(int family, enum bpf_map_type map_type)
414 if (test__start_subtest(fmt_test_name("update_fails_when_sock_has_ulp", family, map_type)))
415 test_sockmap_ktls_update_fails_when_sock_has_ulp(family, map);
420 static void run_ktls_test(int family, int sotype)
423 test_sockmap_ktls_offload(family, sotype);
425 test_sockmap_ktls_tx_cork(family, sotype, false);
427 test_sockmap_ktls_tx_cork(family, sotype, true);
429 test_sockmap_ktls_tx_no_buf(family, sotype, true);
431 test_sockmap_ktls_tx_pop(family, sotype);