Home
last modified time | relevance | path

Searched refs:sotype (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dsockmap_listen.c726 int sotype) in test_skb_redir_to_connected() argument
751 int sotype) in test_msg_redir_to_connected() argument
769 int sotype) in test_msg_redir_to_connected_with_link() argument
846 int sotype) in test_skb_redir_to_listening() argument
871 int sotype) in test_msg_redir_to_listening() argument
950 int sotype) in test_skb_redir_partial() argument
1270 switch (sotype) { in sotype_str()
1287 int sotype; in test_ops() member
1326 if (t->sotype != 0 && t->sotype != sotype) in test_ops()
1378 int sotype; in test_reuseport() member
[all …]
A Dvrf_socket_lookup.c62 static int make_socket(int sotype, const char *ip, int port, in make_socket() argument
71 fd = socket(AF_INET, sotype, 0); in make_socket()
88 fd = start_server(AF_INET, sotype, ip, port, TIMEOUT_MS); in make_server()
201 static int test_lookup(struct vrf_socket_lookup *skel, int sotype, in test_lookup() argument
209 fd = make_socket(sotype, ip, port, &addr); in test_lookup()
217 if (sotype == SOCK_STREAM) in test_lookup()
247 non_vrf_server = make_server(sotype, "0.0.0.0", NON_VRF_PORT, NULL); in _test_vrf_socket_lookup()
251 in_vrf_server = make_server(sotype, "0.0.0.0", IN_VRF_PORT, "veth02"); in _test_vrf_socket_lookup()
261 if (!ASSERT_OK(test_lookup(skel, sotype, IP4_ADDR_VETH02, NON_VRF_PORT, in _test_vrf_socket_lookup()
264 if (!ASSERT_OK(test_lookup(skel, sotype, IP4_ADDR_VETH02, IN_VRF_PORT, in _test_vrf_socket_lookup()
[all …]
A Dsk_lookup.c70 int sotype; member
79 int sotype; member
160 .sotype = sotype, in make_server()
693 .sotype = SOCK_DGRAM, in test_redirect_lookup()
701 .sotype = SOCK_DGRAM, in test_redirect_lookup()
710 .sotype = SOCK_DGRAM, in test_redirect_lookup()
720 .sotype = SOCK_DGRAM, in test_redirect_lookup()
731 .sotype = SOCK_DGRAM, in test_redirect_lookup()
740 .sotype = SOCK_DGRAM, in test_redirect_lookup()
748 .sotype = SOCK_DGRAM, in test_redirect_lookup()
[all …]
A Dsocket_helpers.h132 int __ret = socket(family, sotype, flags); \
237 s = xsocket(family, sotype, 0); in socket_loopback_reuseport()
248 if (sotype & SOCK_DGRAM) in socket_loopback_reuseport()
261 static inline int socket_loopback(int family, int sotype) in socket_loopback() argument
263 return socket_loopback_reuseport(family, sotype, -1); in socket_loopback()
334 s = socket_loopback(family, sotype); in create_pair()
338 c = xsocket(family, sotype, 0); in create_pair()
366 switch (sotype & SOCK_TYPE_MASK) { in create_pair()
387 FAIL("Unsupported socket type %#x", sotype); in create_pair()
400 err = create_pair(family, sotype, c0, p0); in create_socket_pairs()
[all …]
A Dsockmap_ktls.c54 err = create_pair(family, sotype, c, p); in create_ktls_pairs()
141 err = create_ktls_pairs(family, sotype, &c, &p); in test_sockmap_ktls_offload()
178 err = create_pair(family, sotype, &c, &p); in test_sockmap_ktls_tx_cork()
259 err = create_pair(family, sotype, &c, &p); in test_sockmap_ktls_tx_no_buf()
331 err = create_pair(family, sotype, &c, &p); in test_sockmap_ktls_tx_pop()
420 static void run_ktls_test(int family, int sotype) in run_ktls_test() argument
423 test_sockmap_ktls_offload(family, sotype); in run_ktls_test()
425 test_sockmap_ktls_tx_cork(family, sotype, false); in run_ktls_test()
427 test_sockmap_ktls_tx_cork(family, sotype, true); in run_ktls_test()
429 test_sockmap_ktls_tx_no_buf(family, sotype, true); in run_ktls_test()
[all …]
A Dsockmap_strp.c90 static void test_sockmap_strp_dispatch_pkt(int family, int sotype) in test_sockmap_strp_dispatch_pkt() argument
114 err = create_socket_pairs(family, sotype, &c0, &c1, &p0, &p1); in test_sockmap_strp_dispatch_pkt()
168 static void test_sockmap_strp_multiple_pkt(int family, int sotype) in test_sockmap_strp_multiple_pkt() argument
181 err = create_pair(family, sotype, &c, &p); in test_sockmap_strp_multiple_pkt()
229 static void test_sockmap_strp_partial_read(int family, int sotype) in test_sockmap_strp_partial_read() argument
241 err = create_pair(family, sotype, &c, &p); in test_sockmap_strp_partial_read()
289 static void test_sockmap_strp_pass(int family, int sotype, bool fionread) in test_sockmap_strp_pass() argument
302 err = create_pair(family, sotype, &c, &p); in test_sockmap_strp_pass()
368 static void test_sockmap_strp_verdict(int family, int sotype) in test_sockmap_strp_verdict() argument
385 err = create_socket_pairs(family, sotype, &c0, &c1, &p0, &p1); in test_sockmap_strp_verdict()
A Dassign_reuse.c82 void run_assign_reuse(int family, int sotype, const char *ip, __u16 port) in run_assign_reuse() argument
116 fd_sv = start_reuseport_server(family, sotype, ip, port, 100, 1); in run_assign_reuse()
142 if (sotype == SOCK_STREAM) in run_assign_reuse()
152 if (sotype == SOCK_STREAM) in run_assign_reuse()
A Dselect_reuseport.c754 static const char *sotype_str(int sotype) in sotype_str() argument
756 switch (sotype) { in sotype_str()
768 static void test_config(int sotype, sa_family_t family, bool inany) in test_config() argument
771 void (*fn)(int sotype, sa_family_t family); in test_config()
791 if (t->need_sotype && t->need_sotype != sotype) in test_config()
796 family_str(family), sotype_str(sotype), in test_config()
811 setup_per_test(sotype, family, inany, t->no_inner_map); in test_config()
812 t->fn(sotype, family); in test_config()
825 int sotype; in test_all() member
839 test_config(c->sotype, c->family, c->inany); in test_all()
A Dsockmap_redir.c105 int sotype; member
113 return create_socket_pairs(s->family, s->sotype, in socket_spec_pairs()
398 in->sotype == out->sotype)) in test_redir()

Completed in 25 milliseconds