/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp_fastopen.c | 335 __NET_INC_STATS(sock_net(sk), in tcp_fastopen_queue_check() 352 return (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen) & flag) || in tcp_fastopen_no_cookie() 367 int tcp_fastopen = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen); in tcp_try_fastopen() 373 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPFASTOPENCOOKIEREQD); in tcp_try_fastopen() 392 NET_INC_STATS(sock_net(sk), in tcp_try_fastopen() 410 NET_INC_STATS(sock_net(sk), in tcp_try_fastopen() 415 NET_INC_STATS(sock_net(sk), in tcp_try_fastopen() 419 NET_INC_STATS(sock_net(sk), in tcp_try_fastopen() 507 struct net *net = sock_net(sk); in tcp_fastopen_active_disable() 509 if (!READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen_blackhole_timeout)) in tcp_fastopen_active_disable() [all …]
|
D | tcp_timer.c | 75 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONTIMEOUT); in tcp_write_err() 126 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONMEMORY); in tcp_out_of_resources() 130 if (!check_net(sock_net(sk))) { in tcp_out_of_resources() 146 int retries = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_orphan_retries); /* May be zero. */ in tcp_orphan_retries() 162 const struct net *net = sock_net(sk); in tcp_mtu_probing() 235 struct net *net = sock_net(sk); in tcp_write_timeout() 282 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPTIMEOUTREHASH); in tcp_write_timeout() 318 __NET_INC_STATS(sock_net(sk), LINUX_MIB_DELAYEDACKS); in tcp_delack_timer_handler() 346 __NET_INC_STATS(sock_net(sk), LINUX_MIB_DELAYEDACKLOCKED); in tcp_delack_timer() 383 max_probes = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_retries2); in tcp_probe_timer() [all …]
|
D | syncookies.c | 344 if (!READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_syncookies) || in cookie_v4_check() 353 __NET_INC_STATS(sock_net(sk), LINUX_MIB_SYNCOOKIESFAILED); in cookie_v4_check() 357 __NET_INC_STATS(sock_net(sk), LINUX_MIB_SYNCOOKIESRECV); in cookie_v4_check() 361 tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); in cookie_v4_check() 364 tsoff = secure_tcp_ts_off(sock_net(sk), in cookie_v4_check() 370 if (!cookie_timestamp_decode(sock_net(sk), &tcp_opt)) in cookie_v4_check() 407 RCU_INIT_POINTER(ireq->ireq_opt, tcp_v4_save_options(sock_net(sk), skb)); in cookie_v4_check() 428 rt = ip_route_output_key(sock_net(sk), &fl4); in cookie_v4_check() 448 ireq->ecn_ok = cookie_ecn_ok(&tcp_opt, sock_net(sk), &rt->dst); in cookie_v4_check()
|
D | tcp_input.c | 215 dev = dev_get_by_index_rcu(sock_net(sk), skb->skb_iif); in tcp_gro_dev_warn() 428 min(sndmem, READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_wmem[2]))); in tcp_sndbuf_expand() 463 int window = tcp_win_from_space(sk, READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[2])) >> 1; in __tcp_grow_window() 528 int tcp_app_win = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_app_win); in tcp_init_buffer_space() 567 struct net *net = sock_net(sk); in tcp_clamp_window() 719 if (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_moderate_rcvbuf) && in tcp_rcv_space_adjust() 740 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[2])); in tcp_rcv_space_adjust() 905 rate *= sock_net(sk)->ipv4.sysctl_tcp_pacing_ss_ratio; in tcp_update_pacing_rate() 907 rate *= sock_net(sk)->ipv4.sysctl_tcp_pacing_ca_ratio; in tcp_update_pacing_rate() 1037 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_max_reordering)); in tcp_check_sack_reordering() [all …]
|
D | inet_hashtables.c | 52 return inet6_ehashfn(sock_net(sk), in sk_ehashfn() 64 return inet_ehashfn(sock_net(sk), in sk_ehashfn() 118 const int bhash = inet_bhashfn(sock_net(sk), inet_sk(sk)->inet_num, in __inet_put_port() 144 const int bhash = inet_bhashfn(sock_net(sk), port, in __inet_inherit_port() 165 if (net_eq(ib_net(tb), sock_net(sk)) && in __inet_inherit_port() 171 sock_net(sk), head, port, in __inet_inherit_port() 194 hash = ipv6_portaddr_hash(sock_net(sk), in inet_lhash2_bucket_sk() 199 hash = ipv4_portaddr_hash(sock_net(sk), in inet_lhash2_bucket_sk() 247 if (net_eq(sock_net(sk), net) && sk->sk_num == hnum && in compute_score() 457 struct net *net = sock_net(sk); in __inet_check_established() [all …]
|
D | tcp_minisocks.c | 258 struct inet_timewait_death_row *tcp_death_row = &sock_net(sk)->ipv4.tcp_death_row; in tcp_time_wait() 336 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPTIMEWAITOVERFLOW); in tcp_time_wait() 553 __TCP_INC_STATS(sock_net(sk), TCP_MIB_PASSIVEOPENS); in tcp_create_openreq_child() 583 tcp_parse_options(sock_net(sk), skb, &tmp_opt, 0, NULL); in tcp_check_req() 625 if (!tcp_oow_rate_limited(sock_net(sk), skb, in tcp_check_req() 715 !tcp_oow_rate_limited(sock_net(sk), skb, in tcp_check_req() 720 __NET_INC_STATS(sock_net(sk), LINUX_MIB_PAWSESTABREJECTED); in tcp_check_req() 739 __TCP_INC_STATS(sock_net(sk), TCP_MIB_ATTEMPTFAILS); in tcp_check_req() 762 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPDEFERACCEPTDROP); in tcp_check_req() 789 if (!sock_net(sk)->ipv4.sysctl_tcp_abort_on_overflow) { in tcp_check_req() [all …]
|
D | datagram.c | 42 if (!oif || netif_index_is_l3_master(sock_net(sk), oif)) in __ip4_datagram_connect() 55 IP_INC_STATS(sock_net(sk), IPSTATS_MIB_OUTNOROUTES); in __ip4_datagram_connect() 119 rt = ip_route_output_ports(sock_net(sk), &fl4, sk, daddr, in ip4_datagram_release_cb()
|
D | tcp_output.c | 83 NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPORIGDATASENT, in tcp_event_new_data_sent() 186 NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPACKCOMPRESSED, in tcp_event_ack_sent() 230 if (sock_net(sk)->ipv4.sysctl_tcp_workaround_signed_windows) in tcp_select_initial_window() 241 space = max_t(u32, space, READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[2])); in tcp_select_initial_window() 274 NET_INC_STATS(sock_net(sk), in tcp_select_window() 285 sock_net(sk)->ipv4.sysctl_tcp_workaround_signed_windows) in tcp_select_window() 297 NET_INC_STATS(sock_net(sk), in tcp_select_window() 300 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPFROMZEROWINDOWADV); in tcp_select_window() 324 bool use_ecn = sock_net(sk)->ipv4.sysctl_tcp_ecn == 1 || in tcp_ecn_send_syn() 346 if (sock_net(sk)->ipv4.sysctl_tcp_ecn_fallback) in tcp_ecn_clear_syn() [all …]
|
D | udp.c | 141 if (net_eq(sock_net(sk2), net) && in udp_lib_lport_inuse() 178 if (net_eq(sock_net(sk2), net) && in udp_lib_lport_inuse2() 201 struct net *net = sock_net(sk); in udp_reuseport_add_sock() 206 if (net_eq(sock_net(sk2), net) && in udp_reuseport_add_sock() 236 struct net *net = sock_net(sk); in udp_lib_get_port() 322 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in udp_lib_get_port() 348 ipv4_portaddr_hash(sock_net(sk), htonl(INADDR_ANY), snum); in udp_v4_get_port() 350 ipv4_portaddr_hash(sock_net(sk), inet_sk(sk)->inet_rcv_saddr, 0); in udp_v4_get_port() 366 if (!net_eq(sock_net(sk), net) || in compute_score() 581 if (!net_eq(sock_net(sk), net) || in __udp_is_mcast_sock() [all …]
|
D | raw_diag.c | 99 net = sock_net(in_skb->sk); in raw_diag_dump_one() 146 struct net *net = sock_net(skb->sk); in raw_diag_dump() 167 if (!net_eq(sock_net(sk), net)) in raw_diag_dump() 204 struct net *net = sock_net(in_skb->sk); in raw_diag_destroy()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | syncookies.c | 144 if (!READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_syncookies) || in cookie_v6_check() 153 __NET_INC_STATS(sock_net(sk), LINUX_MIB_SYNCOOKIESFAILED); in cookie_v6_check() 157 __NET_INC_STATS(sock_net(sk), LINUX_MIB_SYNCOOKIESRECV); in cookie_v6_check() 161 tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); in cookie_v6_check() 164 tsoff = secure_tcpv6_ts_off(sock_net(sk), in cookie_v6_check() 170 if (!cookie_timestamp_decode(sock_net(sk), &tcp_opt)) in cookie_v6_check() 240 dst = ip6_dst_lookup_flow(sock_net(sk), sk, &fl6, final_p); in cookie_v6_check() 258 ireq->ecn_ok = cookie_ecn_ok(&tcp_opt, sock_net(sk), dst); in cookie_v6_check()
|
/kernel/linux/linux-5.10/net/can/ |
D | raw.c | 275 if (!net_eq(dev_net(dev), sock_net(sk))) in raw_notify() 390 dev = dev_get_by_index(sock_net(sk), ro->ifindex); in raw_release() 396 raw_disable_allfilters(sock_net(sk), NULL, sk); in raw_release() 439 dev = dev_get_by_index(sock_net(sk), addr->can_ifindex); in raw_bind() 455 err = raw_enable_allfilters(sock_net(sk), dev, sk); in raw_bind() 461 err = raw_enable_allfilters(sock_net(sk), NULL, sk); in raw_bind() 470 dev = dev_get_by_index(sock_net(sk), in raw_bind() 478 raw_disable_allfilters(sock_net(sk), NULL, sk); in raw_bind() 553 dev = dev_get_by_index(sock_net(sk), ro->ifindex); in raw_setsockopt() 565 err = raw_enable_filters(sock_net(sk), dev, sk, in raw_setsockopt() [all …]
|
/kernel/linux/linux-5.10/net/vmw_vsock/ |
D | diag.c | 59 net = sock_net(skb->sk); in vsock_diag_dump() 79 if (!net_eq(sock_net(sk), net)) in vsock_diag_dump() 113 if (!net_eq(sock_net(sk), net)) in vsock_diag_dump() 144 struct net *net = sock_net(skb->sk); in vsock_diag_handler_dump()
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | tcp_nip_timer.c | 37 int retries = sock_net(sk)->ipv4.sysctl_tcp_orphan_retries; /* May be zero. */ in tcp_nip_orphan_retries() 70 __NET_INC_STATS(sock_net(sk), LINUX_MIB_DELAYEDACKS); in tcp_nip_delack_timer_handler() 82 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONTIMEOUT); in tcp_nip_write_err() 95 __NET_INC_STATS(sock_net(sk), LINUX_MIB_DELAYEDACKLOCKED); in tcp_nip_delack_timer() 121 struct net *net = sock_net(sk); in tcp_nip_write_timeout() 154 struct net *net = sock_net(sk); in tcp_nip_retransmit_timer()
|
D | ninet_hashtables.c | 132 u32 hash = nip_portaddr_hash(sock_net(sk), in ninet_lhash2_bucket_sk() 212 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __ninet_hash() 262 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in __ninet_unhash() 354 net_eq(sock_net(sk), net)) { in nip_tcp_compute_score() 454 struct net *net = sock_net(sk); in __ninet_check_established() 487 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __ninet_check_established()
|
/kernel/linux/linux-5.10/net/tls/ |
D | tls_main.c | 284 TLS_DEC_STATS(sock_net(sk), LINUX_MIB_TLSCURRTXSW); in tls_sk_proto_cleanup() 287 TLS_DEC_STATS(sock_net(sk), LINUX_MIB_TLSCURRTXDEVICE); in tls_sk_proto_cleanup() 292 TLS_DEC_STATS(sock_net(sk), LINUX_MIB_TLSCURRRXSW); in tls_sk_proto_cleanup() 295 TLS_DEC_STATS(sock_net(sk), LINUX_MIB_TLSCURRRXDEVICE); in tls_sk_proto_cleanup() 551 TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSTXDEVICE); in do_tls_setsockopt_conf() 552 TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSCURRTXDEVICE); in do_tls_setsockopt_conf() 557 TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSTXSW); in do_tls_setsockopt_conf() 558 TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSCURRTXSW); in do_tls_setsockopt_conf() 565 TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSRXDEVICE); in do_tls_setsockopt_conf() 566 TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSCURRRXDEVICE); in do_tls_setsockopt_conf() [all …]
|
/kernel/linux/linux-5.10/net/ieee802154/ |
D | socket.c | 137 dev_load(sock_net(sk), ifr.ifr_name); in ieee802154_dev_ioctl() 138 dev = dev_get_by_name(sock_net(sk), ifr.ifr_name); in ieee802154_dev_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() 215 dev = ieee802154_get_dev(sock_net(sk), &addr); in raw_bind() 257 dev = dev_getfirstbyhwtype(sock_net(sk), ARPHRD_IEEE802154); in raw_sendmsg() 259 dev = dev_get_by_index(sock_net(sk), sk->sk_bound_dev_if); in raw_sendmsg() 462 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in dgram_hash() 472 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in dgram_unhash() 512 dev = ieee802154_get_dev(sock_net(sk), &haddr); in dgram_bind() [all …]
|
/kernel/linux/linux-5.10/net/phonet/ |
D | socket.c | 79 if (!net_eq(sock_net(sknode), net)) in pn_find_sock_by_sa() 116 if (!net_eq(sock_net(sknode), net)) in pn_deliver_sock_broadcast() 175 if (saddr && phonet_address_lookup(sock_net(sk), saddr)) in pn_socket_bind() 372 dev = dev_get_by_index(sock_net(sk), in pn_socket_ioctl() 375 dev = phonet_device_get(sock_net(sk)); in pn_socket_ioctl() 474 struct net *net = sock_net(sk); in pn_sock_get_port() 529 if (!net_eq(net, sock_net(sknode))) in pn_sock_get_idx() 546 while (sk && !net_eq(net, sock_net(sk))); in pn_sock_get_next() 636 if (!net_eq(sock_net(sk), &init_net)) in pn_sock_bind_res()
|
/kernel/linux/linux-5.10/net/netlink/ |
D | diag.c | 94 struct net *net = sock_net(skb->sk); in __netlink_diag_dump() 133 if (!net_eq(sock_net(sk), net)) in __netlink_diag_dump() 159 if (!net_eq(sock_net(sk), net)) in __netlink_diag_dump() 227 struct net *net = sock_net(skb->sk); in netlink_diag_handler_dump()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | nldev.c | 886 device = ib_device_get_by_index(sock_net(skb->sk), index); in nldev_get_doit() 907 return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); in nldev_get_doit() 930 device = ib_device_get_by_index(sock_net(skb->sk), index); in nldev_set_doit() 1024 device = ib_device_get_by_index(sock_net(skb->sk), index); in nldev_port_get_doit() 1044 err = fill_port_info(msg, device, port, sock_net(skb->sk)); in nldev_port_get_doit() 1051 return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); in nldev_port_get_doit() 1078 device = ib_device_get_by_index(sock_net(skb->sk), ifindex); in nldev_port_get_dumpit() 1104 if (fill_port_info(skb, device, p, sock_net(skb->sk))) { in nldev_port_get_dumpit() 1133 device = ib_device_get_by_index(sock_net(skb->sk), index); in nldev_res_get_doit() 1153 return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); in nldev_res_get_doit() [all …]
|
/kernel/linux/linux-5.10/net/unix/ |
D | diag.c | 202 struct net *net = sock_net(skb->sk); in unix_diag_dump() 217 if (!net_eq(sock_net(sk), net)) in unix_diag_dump() 268 struct net *net = sock_net(in_skb->sk); in unix_diag_get_exact() 277 if (!net_eq(sock_net(sk), net)) in unix_diag_get_exact() 316 struct net *net = sock_net(skb->sk); in unix_diag_handler_dump()
|
/kernel/linux/linux-5.10/net/xfrm/ |
D | espintcp.c | 18 XFRM_INC_STATS(sock_net(sk), LINUX_MIB_XFRMINERROR); in handle_nonesp() 40 skb->dev = dev_get_by_index_rcu(sock_net(sk), skb->skb_iif); in handle_esp() 67 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR); in espintcp_rcv() 80 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR); in espintcp_rcv() 88 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR); in espintcp_rcv() 95 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv() 101 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_cgroup.c | 106 if (!sk || !sk_fullsock(sk) || !net_eq(xt_net(par), sock_net(sk))) in cgroup_mt_v0() 120 if (!sk || !sk_fullsock(sk) || !net_eq(xt_net(par), sock_net(sk))) in cgroup_mt_v1() 138 if (!sk || !sk_fullsock(sk) || !net_eq(xt_net(par), sock_net(sk))) in cgroup_mt_v2()
|
/kernel/linux/linux-5.10/include/net/ |
D | udp.h | 426 ipv4 ? (IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_statistics : \ 427 sock_net(sk)->mib.udp_statistics) : \ 428 (IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_stats_in6 : \ 429 sock_net(sk)->mib.udp_stats_in6); \ 434 IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_statistics : \ 435 sock_net(sk)->mib.udp_statistics; \
|
/kernel/linux/linux-5.10/net/mptcp/ |
D | token.c | 257 !net_eq(sock_net(sk), net)) in mptcp_token_get_sock() 264 !net_eq(sock_net(sk), net)) { in mptcp_token_get_sock() 313 if (!net_eq(sock_net(sk), net)) in mptcp_token_iter_next() 322 if (!net_eq(sock_net(sk), net)) { in mptcp_token_iter_next()
|