Home
last modified time | relevance | path

Searched refs:sk_prot (Results 1 - 25 of 111) sorted by relevance

12345

/kernel/linux/linux-5.10/include/net/
H A Dtimewait_sock.h25 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique()
26 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique()
32 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor()
33 sk->sk_prot->twsk_prot->twsk_destructor(sk); in twsk_destructor()
H A Dsock.h300 * @sk_prot_creator: sk_prot of original sock creator (see ipv6_setsockopt,
384 #define sk_prot __sk_common.skc_prot macro
1082 * [1] : sk_state and sk_prot are in the same cache line. in sock_rps_record_flow()
1295 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1300 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1302 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1309 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1322 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free()
1323 sk->sk_prot in __sk_stream_memory_free()
[all...]
H A Drequest_sock.h103 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
/kernel/linux/linux-6.6/include/net/
H A Dtimewait_sock.h25 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique()
26 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique()
32 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor()
33 sk->sk_prot->twsk_prot->twsk_destructor(sk); in twsk_destructor()
H A Dsock.h294 * @sk_prot_creator: sk_prot of original sock creator (see ipv6_setsockopt,
388 #define sk_prot __sk_common.skc_prot macro
1159 * [1] : sk_state and sk_prot are in the same cache line. in sock_rps_record_flow()
1381 if (sk->sk_prot->forward_alloc_get) in sk_forward_alloc_get()
1382 return sk->sk_prot->forward_alloc_get(sk); in sk_forward_alloc_get()
1392 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free()
1393 INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free, in __sk_stream_memory_free()
1426 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1431 return sk->sk_prot->memory_pressure && in sk_under_global_memory_pressure()
1432 !!READ_ONCE(*sk->sk_prot in sk_under_global_memory_pressure()
[all...]
/kernel/linux/linux-5.10/net/dccp/
H A Doutput.c463 skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_ctl_make_reset()
467 skb_reserve(skb, sk->sk_prot->max_header); in dccp_ctl_make_reset()
517 skb = sock_wmalloc(sk, sk->sk_prot->max_header, 1, GFP_ATOMIC); in dccp_send_reset()
522 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_reset()
551 skb = alloc_skb(sk->sk_prot->max_header, sk->sk_allocation); in dccp_connect()
556 skb_reserve(skb, sk->sk_prot->max_header); in dccp_connect()
576 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, in dccp_send_ack()
589 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_ack()
638 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_send_sync()
647 skb_reserve(skb, sk->sk_prot in dccp_send_sync()
[all...]
/kernel/linux/linux-6.6/net/dccp/
H A Doutput.c472 skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_ctl_make_reset()
476 skb_reserve(skb, sk->sk_prot->max_header); in dccp_ctl_make_reset()
526 skb = sock_wmalloc(sk, sk->sk_prot->max_header, 1, GFP_ATOMIC); in dccp_send_reset()
531 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_reset()
560 skb = alloc_skb(sk->sk_prot->max_header, sk->sk_allocation); in dccp_connect()
565 skb_reserve(skb, sk->sk_prot->max_header); in dccp_connect()
585 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, in dccp_send_ack()
598 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_ack()
647 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_send_sync()
656 skb_reserve(skb, sk->sk_prot in dccp_send_sync()
[all...]
/kernel/linux/linux-5.10/net/ieee802154/
H A Dsocket.c87 sk->sk_prot->close(sk, 0); in ieee802154_sock_release()
97 return sk->sk_prot->sendmsg(sk, msg, len); in ieee802154_sock_sendmsg()
105 if (sk->sk_prot->bind) in ieee802154_sock_bind()
106 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
120 return sk->sk_prot->disconnect(sk, flags); in ieee802154_sock_connect()
122 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect()
164 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl()
166 return sk->sk_prot->ioctl(sk, cmd, arg); in ieee802154_sock_ioctl()
178 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash()
188 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, in raw_unhash()
[all...]
/kernel/linux/linux-6.6/net/ieee802154/
H A Dsocket.c86 sk->sk_prot->close(sk, 0); in ieee802154_sock_release()
96 return sk->sk_prot->sendmsg(sk, msg, len); in ieee802154_sock_sendmsg()
104 if (sk->sk_prot->bind) in ieee802154_sock_bind()
105 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
119 return sk->sk_prot->disconnect(sk, flags); in ieee802154_sock_connect()
121 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect()
163 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl()
178 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash()
187 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash()
461 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, in dgram_hash()
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Daf_inet.c180 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind()
358 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create()
377 err = sk->sk_prot->hash(sk); in inet_create()
384 if (sk->sk_prot->init) { in inet_create()
385 err = sk->sk_prot->init(sk); in inet_create()
436 sk->sk_prot->close(sk, timeout); in inet_release()
449 if (sk->sk_prot->bind) { in inet_bind_sk()
450 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind_sk()
537 err = sk->sk_prot->get_port(sk, snum); in __inet_bind()
546 if (sk->sk_prot in __inet_bind()
[all...]
H A Ddatagram.c68 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
/kernel/linux/linux-5.10/net/ipv4/
H A Daf_inet.c186 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind()
358 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create()
378 err = sk->sk_prot->hash(sk); in inet_create()
385 if (sk->sk_prot->init) { in inet_create()
386 err = sk->sk_prot->init(sk); in inet_create()
437 sk->sk_prot->close(sk, timeout); in inet_release()
450 if (sk->sk_prot->bind) { in inet_bind()
451 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind()
534 if (sk->sk_prot->get_port(sk, snum)) { in __inet_bind()
574 /* IPV6_ADDRFORM can change sk->sk_prot unde in inet_dgram_connect()
[all...]
H A Dinet_hashtables.c117 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_put_port()
142 struct inet_hashinfo *table = sk->sk_prot->h.hashinfo; in __inet_inherit_port()
498 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_check_established()
567 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_ehash_insert()
603 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in inet_ehash_nolisten()
605 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_ehash_nolisten()
639 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_hash()
666 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash()
693 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_unhash()
699 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, in __inet_unhash()
[all...]
H A Ddatagram.c68 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
H A Dinet_connection_sock.c189 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port()
362 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port()
716 struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; in reqsk_queue_unlink()
911 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock()
919 this_cpu_dec(*sk->sk_prot->orphan_count); in inet_csk_destroy_sock()
971 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start()
975 err = sk->sk_prot->hash(sk); in inet_csk_listen_start()
989 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget()
993 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_child_forget()
/kernel/linux/linux-5.10/net/phonet/
H A Dsocket.c34 sk->sk_prot->close(sk, 0); in pn_socket_release()
165 if (sk->sk_prot->bind) in pn_socket_bind()
166 return sk->sk_prot->bind(sk, addr, len); in pn_socket_bind()
185 err = sk->sk_prot->get_port(sk, pn_port(handle)); in pn_socket_bind()
194 err = sk->sk_prot->hash(sk); in pn_socket_bind()
255 err = sk->sk_prot->connect(sk, addr, len); in pn_socket_connect()
304 newsk = sk->sk_prot->accept(sk, flags, &err, kern); in pn_socket_accept()
391 return sk->sk_prot->ioctl(sk, cmd, arg); in pn_socket_ioctl()
426 return sk->sk_prot->sendmsg(sk, m, total_len); in pn_socket_sendmsg()
/kernel/linux/linux-6.6/net/phonet/
H A Dsocket.c34 sk->sk_prot->close(sk, 0); in pn_socket_release()
165 if (sk->sk_prot->bind) in pn_socket_bind()
166 return sk->sk_prot->bind(sk, addr, len); in pn_socket_bind()
185 err = sk->sk_prot->get_port(sk, pn_port(handle)); in pn_socket_bind()
194 err = sk->sk_prot->hash(sk); in pn_socket_bind()
255 err = sk->sk_prot->connect(sk, addr, len); in pn_socket_connect()
304 newsk = sk->sk_prot->accept(sk, flags, &err, kern); in pn_socket_accept()
425 return sk->sk_prot->sendmsg(sk, m, total_len); in pn_socket_sendmsg()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Dninet_hashtables.c192 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __ninet_hash()
212 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __ninet_hash()
255 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __ninet_unhash()
262 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in __ninet_unhash()
267 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in ninet_unhash()
487 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __ninet_check_established()
H A Daf_ninet.c224 err = sk->sk_prot->hash(sk); in ninet_create()
230 if (sk->sk_prot->init) { in ninet_create()
231 err = sk->sk_prot->init(sk); in ninet_create()
260 prot = READ_ONCE(sk->sk_prot); in ninet_bind()
287 sk->sk_prot->get_port(sk, snum)) { in ninet_bind()
443 err = sk->sk_prot->connect(sk, uaddr, addr_len); in __ninet_stream_connect()
527 prot = READ_ONCE(sk->sk_prot); in ninet_ioctl()
529 nip_dbg("sock sk_prot ioctl is null, cmd=0x%x", cmd); in ninet_ioctl()
/kernel/linux/linux-6.6/net/ipv6/
H A Daf_inet6.c107 const int offset = sk->sk_prot->ipv6_pinfo_offset; in inet6_sk_generic()
252 err = sk->sk_prot->hash(sk); in inet6_create()
258 if (sk->sk_prot->init) { in inet6_create()
259 err = sk->sk_prot->init(sk); in inet6_create()
407 err = sk->sk_prot->get_port(sk, snum); in __inet6_bind()
418 if (sk->sk_prot->put_port) in __inet6_bind()
419 sk->sk_prot->put_port(sk); in __inet6_bind()
447 /* IPV6_ADDRFORM can change sk->sk_prot under us. */ in inet6_bind_sk()
448 prot = READ_ONCE(sk->sk_prot); in inet6_bind_sk()
586 /* IPV6_ADDRFORM can change sk->sk_prot unde in inet6_ioctl()
[all...]
/kernel/linux/linux-5.10/net/xfrm/
H A Despintcp.c435 return sk->sk_prot == &espintcp_prot || sk->sk_prot == &espintcp6_prot; in tcp_is_ulp_esp()
472 sk->sk_prot = &espintcp_prot; in espintcp_init_sk()
477 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk()
480 sk->sk_prot = &espintcp6_prot; in espintcp_init_sk()
524 sk->sk_prot = &tcp_prot; in espintcp_close()
/kernel/linux/linux-6.6/net/xfrm/
H A Despintcp.c442 return sk->sk_prot == &espintcp_prot || sk->sk_prot == &espintcp6_prot; in tcp_is_ulp_esp()
479 sk->sk_prot = &espintcp_prot; in espintcp_init_sk()
484 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk()
487 sk->sk_prot = &espintcp6_prot; in espintcp_init_sk()
532 sk->sk_prot = &tcp_prot; in espintcp_close()
/kernel/linux/linux-6.6/net/core/
H A Dsock.c648 if (sk->sk_prot->rehash) in sock_bindtoindex_locked()
649 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked()
956 if (sk->sk_prot->keepalive) in sock_set_keepalive()
957 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive()
1204 if (sk->sk_prot->keepalive) in sk_setsockopt()
1205 sk->sk_prot->keepalive(sk, valbool); in sk_setsockopt()
2059 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy()
2158 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc()
2297 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock()
2405 if (newsk->sk_prot in sk_clone_lock()
[all...]
/kernel/linux/linux-5.10/net/core/
H A Dsock.c575 if (sk->sk_prot->rehash) in sock_bindtoindex_locked()
576 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked()
775 if (sk->sk_prot->keepalive) in sock_set_keepalive()
776 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive()
939 if (sk->sk_prot->keepalive) in sock_setsockopt()
940 sk->sk_prot->keepalive(sk, valbool); in sock_setsockopt()
1666 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy()
1756 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc()
1889 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock()
1985 * sock (sk_refcnt_debug_inc uses newsk->sk_prot in sk_clone_lock()
[all...]
/kernel/linux/linux-6.6/net/mptcp/
H A Dtoken.c179 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in mptcp_token_new_connect()
198 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in mptcp_token_accept()
384 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in mptcp_token_destroy()

Completed in 41 milliseconds

12345