Home
last modified time | relevance | path

Searched refs:sk_prot (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/include/net/
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()
Dsock.h383 #define sk_prot __sk_common.skc_prot macro
1280 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1285 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1287 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1294 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1307 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free()
1308 sk->sk_prot->stream_memory_free(sk, wake) : true; in __sk_stream_memory_free()
1340 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1345 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1352 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
[all …]
Drequest_sock.h103 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
/kernel/linux/linux-5.10/net/dccp/
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->max_header); in dccp_send_sync()
[all …]
Dproto.c100 sk->sk_prot->unhash(sk); in dccp_set_state()
761 size = sk->sk_prot->max_header + len; in dccp_sendmsg()
778 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg()
1021 sk->sk_prot->disconnect(sk, 0); in dccp_close()
/kernel/linux/linux-5.10/net/ipv4/
Daf_inet.c183 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind()
355 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create()
375 err = sk->sk_prot->hash(sk); in inet_create()
382 if (sk->sk_prot->init) { in inet_create()
383 err = sk->sk_prot->init(sk); in inet_create()
434 sk->sk_prot->close(sk, timeout); in inet_release()
447 if (sk->sk_prot->bind) { in inet_bind()
448 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind()
531 if (sk->sk_prot->get_port(sk, snum)) { in __inet_bind()
572 prot = READ_ONCE(sk->sk_prot); in inet_dgram_connect()
[all …]
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, -1); in __inet_unhash()
[all …]
Ddatagram.c68 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
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()
702 struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; in reqsk_queue_unlink()
895 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock()
903 this_cpu_dec(*sk->sk_prot->orphan_count); in inet_csk_destroy_sock()
955 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start()
959 err = sk->sk_prot->hash(sk); in inet_csk_listen_start()
973 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget()
977 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_child_forget()
Draw.c95 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_hash_sk()
102 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash_sk()
111 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_unhash_sk()
115 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash_sk()
/kernel/linux/linux-5.10/net/ieee802154/
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, -1); in raw_unhash()
[all …]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Daf_ninet.c176 err = sk->sk_prot->hash(sk); in ninet_create()
182 if (sk->sk_prot->init) { in ninet_create()
183 err = sk->sk_prot->init(sk); in ninet_create()
211 if (sk->sk_prot->bind) in ninet_bind()
212 return sk->sk_prot->bind(sk, uaddr, addr_len); in ninet_bind()
237 sk->sk_prot->get_port(sk, snum)) { in ninet_bind()
393 err = sk->sk_prot->connect(sk, uaddr, addr_len); in __ninet_stream_connect()
464 if (!sk->sk_prot->ioctl) { in ninet_ioctl()
468 return sk->sk_prot->ioctl(sk, cmd, arg); in ninet_ioctl()
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()
Dtcp_nip.c557 this_cpu_dec(*sk->sk_prot->orphan_count); in tcp_nip_close()
1065 if (sk->sk_prot->keepalive) { in tcp_nip_keepalive_para_update()
1066 sk->sk_prot->keepalive(sk, 1); in tcp_nip_keepalive_para_update()
1170 if (sk->sk_prot->keepalive) in tcp_nip_keepalive_disable()
1171 sk->sk_prot->keepalive(sk, 0); in tcp_nip_keepalive_disable()
2126 sk->sk_prot->destroy(sk); in tcp_nip_done()
2131 this_cpu_dec(*sk->sk_prot->orphan_count); in tcp_nip_done()
/kernel/linux/linux-5.10/net/phonet/
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()
Daf_phonet.c96 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in pn_socket_create()
102 sk->sk_prot->init(sk); in pn_socket_create()
/kernel/linux/linux-5.10/net/xfrm/
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-5.10/net/core/
Dsock.c575 if (sk->sk_prot->rehash) in sock_bindtoindex_locked()
576 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked()
774 if (sk->sk_prot->keepalive) in sock_set_keepalive()
775 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive()
938 if (sk->sk_prot->keepalive) in sock_setsockopt()
939 sk->sk_prot->keepalive(sk, valbool); in sock_setsockopt()
1662 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy()
1752 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc()
1885 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock()
1995 if (newsk->sk_prot->sockets_allocated) in sk_clone_lock()
[all …]
Dsock_diag.c302 if (!sk->sk_prot->diag_destroy) in sock_diag_destroy()
305 return sk->sk_prot->diag_destroy(sk, err); in sock_diag_destroy()
/kernel/linux/linux-5.10/net/ipv6/
Daf_inet6.c105 const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); in inet6_sk_generic()
249 err = sk->sk_prot->hash(sk); in inet6_create()
255 if (sk->sk_prot->init) { in inet6_create()
256 err = sk->sk_prot->init(sk); in inet6_create()
406 if (sk->sk_prot->get_port(sk, snum)) { in __inet6_bind()
446 prot = READ_ONCE(sk->sk_prot); in inet6_bind()
574 prot = READ_ONCE(sk->sk_prot); in inet6_ioctl()
645 prot = READ_ONCE(sk->sk_prot); in inet6_sendmsg()
664 prot = READ_ONCE(sk->sk_prot); in inet6_recvmsg()
Dipv6_sockglue.c446 if (sk->sk_prot != &tcpv6_prot) { in do_ipv6_setsockopt()
479 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
483 WRITE_ONCE(sk->sk_prot, &tcp_prot); in do_ipv6_setsockopt()
495 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
499 WRITE_ONCE(sk->sk_prot, prot); in do_ipv6_setsockopt()
Ddatagram.c102 if (sk->sk_prot->rehash) in ip6_datagram_dst_update()
103 sk->sk_prot->rehash(sk); in ip6_datagram_dst_update()
207 if (sk->sk_prot->rehash) in __ip6_datagram_connect()
208 sk->sk_prot->rehash(sk); in __ip6_datagram_connect()
/kernel/linux/linux-5.10/net/tls/
Dtls_main.c72 WRITE_ONCE(sk->sk_prot, in update_sk_prot()
318 WRITE_ONCE(sk->sk_prot, ctx->sk_proto); in tls_sk_proto_close()
638 ctx->sk_proto = READ_ONCE(sk->sk_prot); in tls_ctx_create()
679 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto()
799 WRITE_ONCE(sk->sk_prot, p); in tls_update()
/kernel/linux/linux-5.10/include/linux/
Dskmsg.h347 WRITE_ONCE(sk->sk_prot, ops); in sk_psock_update_proto()
359 WRITE_ONCE(sk->sk_prot->unhash, psock->saved_unhash); in sk_psock_restore_proto()
364 WRITE_ONCE(sk->sk_prot, psock->sk_proto); in sk_psock_restore_proto()
/kernel/linux/linux-5.10/net/smc/
Daf_smc.c69 smc->clcsock->sk->sk_prot->keepalive(smc->clcsock->sk, val); in smc_set_keepalive()
82 struct smc_hashinfo *h = sk->sk_prot->h.smc_hash; in smc_hash_sk()
89 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in smc_hash_sk()
98 struct smc_hashinfo *h = sk->sk_prot->h.smc_hash; in smc_unhash_sk()
102 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in smc_unhash_sk()
164 sk->sk_prot->unhash(sk); in __smc_release()
258 sk->sk_prot->hash(sk); in smc_sock_alloc()
1168 new_sk->sk_prot->unhash(new_sk); in smc_clcsock_accept()
1227 new_sk->sk_prot->unhash(new_sk); in smc_accept_dequeue()

123