xref: /linux/Documentation/networking/net_cachelines/netns_ipv4_sysctl.rst (revision 6cdbe63badcb524c88f2c8b3cee08f2ffc099a1b)
1.. SPDX-License-Identifier: GPL-2.0
2.. Copyright (C) 2023 Google LLC
3
4===========================================
5netns_ipv4 struct fast path usage breakdown
6===========================================
7
8=============================== ============================================ =================== =================== =================================================
9Type                            Name                                         fastpath_tx_access  fastpath_rx_access  comment
10=============================== ============================================ =================== =================== =================================================
11struct_inet_timewait_death_row  tcp_death_row
12struct_udp_table*               udp_table
13struct_ctl_table_header*        forw_hdr
14struct_ctl_table_header*        frags_hdr
15struct_ctl_table_header*        ipv4_hdr
16struct_ctl_table_header*        route_hdr
17struct_ctl_table_header*        xfrm4_hdr
18struct_ipv4_devconf*            devconf_all
19struct_ipv4_devconf*            devconf_dflt
20struct_ip_ra_chain              ra_chain
21struct_mutex                    ra_mutex
22struct_fib_rules_ops*           rules_ops
23struct_fib_table                fib_main
24struct_fib_table                fib_default
25spinlock_t                      fib_table_hash_lock
26unsigned_int                    fib_rules_require_fldissect
27bool                            fib_has_custom_rules
28bool                            fib_has_custom_local_routes
29bool                            fib_offload_disabled
30atomic_t                        fib_num_tclassid_users
31struct_hlist_head*              fib_table_hash
32struct_sock*                    fibnl
33struct_sock*                    mc_autojoin_sk
34struct_inet_peer_base*          peers
35struct_fqdir*                   fqdir
36u8                              sysctl_icmp_echo_ignore_all
37u8                              sysctl_icmp_echo_enable_probe
38u8                              sysctl_icmp_echo_ignore_broadcasts
39u8                              sysctl_icmp_ignore_bogus_error_responses
40u8                              sysctl_icmp_errors_use_inbound_ifaddr
41int                             sysctl_icmp_ratelimit
42int                             sysctl_icmp_ratemask
43u32                             ip_rt_min_pmtu
44int                             ip_rt_mtu_expires
45int                             ip_rt_min_advmss
46struct_local_ports              ip_local_ports
47u8                              sysctl_tcp_ecn
48u8                              sysctl_tcp_ecn_fallback
49u8                              sysctl_ip_default_ttl                                                                ip4_dst_hoplimit/ip_select_ttl
50u8                              sysctl_ip_no_pmtu_disc
51u8                              sysctl_ip_fwd_use_pmtu                       read_mostly                             ip_dst_mtu_maybe_forward/ip_skb_dst_mtu
52u8                              sysctl_ip_fwd_update_priority                                                        ip_forward
53u8                              sysctl_ip_nonlocal_bind
54u8                              sysctl_ip_autobind_reuse
55u8                              sysctl_ip_dynaddr
56u32                             sysctl_ip_local_port_step_width
57u8                              sysctl_ip_early_demux                                            read_mostly         ip(6)_rcv_finish_core
58u8                              sysctl_raw_l3mdev_accept
59u8                              sysctl_tcp_early_demux                                           read_mostly         ip(6)_rcv_finish_core
60u8                              sysctl_udp_early_demux
61u8                              sysctl_nexthop_compat_mode
62u8                              sysctl_fwmark_reflect
63u8                              sysctl_tcp_fwmark_accept
64u8                              sysctl_tcp_l3mdev_accept                                         read_mostly         __inet6_lookup_established/inet_request_bound_dev_if
65u8                              sysctl_tcp_mtu_probing
66int                             sysctl_tcp_mtu_probe_floor
67int                             sysctl_tcp_base_mss
68int                             sysctl_tcp_min_snd_mss                       read_mostly                             __tcp_mtu_to_mss(tcp_write_xmit)
69int                             sysctl_tcp_probe_threshold                                                           tcp_mtu_probe(tcp_write_xmit)
70u32                             sysctl_tcp_probe_interval                                                            tcp_mtu_check_reprobe(tcp_write_xmit)
71int                             sysctl_tcp_keepalive_time
72int                             sysctl_tcp_keepalive_intvl
73u8                              sysctl_tcp_keepalive_probes
74u8                              sysctl_tcp_syn_retries
75u8                              sysctl_tcp_synack_retries
76u8                              sysctl_tcp_syncookies                                                                generated_on_syn
77u8                              sysctl_tcp_migrate_req                                                               reuseport
78u8                              sysctl_tcp_comp_sack_nr                                                              __tcp_ack_snd_check
79int                             sysctl_tcp_reordering                                            read_mostly         tcp_may_raise_cwnd/tcp_cong_control
80u8                              sysctl_tcp_retries1
81u8                              sysctl_tcp_retries2
82u8                              sysctl_tcp_orphan_retries
83u8                              sysctl_tcp_tw_reuse                                                                  timewait_sock_ops
84unsigned_int                    sysctl_tcp_tw_reuse_delay                                                            timewait_sock_ops
85int                             sysctl_tcp_fin_timeout                                                               TCP_LAST_ACK/tcp_rcv_state_process
86unsigned_int                    sysctl_tcp_notsent_lowat                     read_mostly                             tcp_notsent_lowat/tcp_stream_memory_free
87u8                              sysctl_tcp_sack                                                                      tcp_syn_options
88u8                              sysctl_tcp_window_scaling                                                            tcp_syn_options,tcp_parse_options
89u8                              sysctl_tcp_timestamps
90u8                              sysctl_tcp_early_retrans                     read_mostly                             tcp_schedule_loss_probe(tcp_write_xmit)
91u32                             sysctl_tcp_rto_max_ms
92u8                              sysctl_tcp_recovery                                                                  tcp_fastretrans_alert
93u8                              sysctl_tcp_thin_linear_timeouts                                                      tcp_retrans_timer(on_thin_streams)
94u8                              sysctl_tcp_slow_start_after_idle                                                     unlikely(tcp_cwnd_validate-network-not-starved)
95u8                              sysctl_tcp_retrans_collapse
96u8                              sysctl_tcp_stdurg                                                                    unlikely(tcp_check_urg)
97u8                              sysctl_tcp_rfc1337
98u8                              sysctl_tcp_abort_on_overflow
99u8                              sysctl_tcp_fack
100int                             sysctl_tcp_max_reordering                                                            tcp_check_sack_reordering
101int                             sysctl_tcp_adv_win_scale                                                             tcp_init_buffer_space
102u8                              sysctl_tcp_dsack                                                                     partial_packet_or_retrans_in_tcp_data_queue
103u8                              sysctl_tcp_app_win                                                                   tcp_win_from_space
104u8                              sysctl_tcp_frto                                                                      tcp_enter_loss
105u8                              sysctl_tcp_nometrics_save                                                            TCP_LAST_ACK/tcp_update_metrics
106u8                              sysctl_tcp_no_ssthresh_metrics_save                                                  TCP_LAST_ACK/tcp_(update/init)_metrics
107u8                              sysctl_tcp_moderate_rcvbuf                                       read_mostly         tcp_rcvbuf_grow()
108u32                             sysctl_tcp_rcvbuf_low_rtt                                        read_mostly         tcp_rcvbuf_grow()
109u8                              sysctl_tcp_shrink_window                     read_mostly         read_mostly         __tcp_select_window()
110u8                              sysctl_tcp_tso_win_divisor                   read_mostly                             tcp_tso_should_defer(tcp_write_xmit)
111u8                              sysctl_tcp_workaround_signed_windows                                                 tcp_select_window
112int                             sysctl_tcp_limit_output_bytes                read_mostly                             tcp_small_queue_check(tcp_write_xmit)
113int                             sysctl_tcp_challenge_ack_limit
114int                             sysctl_tcp_min_rtt_wlen                      read_mostly                             tcp_ack_update_rtt
115u8                              sysctl_tcp_min_tso_segs                                                              unlikely(icsk_ca_ops-written)
116u8                              sysctl_tcp_tso_rtt_log                       read_mostly                             tcp_tso_autosize
117u8                              sysctl_tcp_autocorking                       read_mostly                             tcp_push/tcp_should_autocork
118u8                              sysctl_tcp_reflect_tos                                                               tcp_v(4/6)_send_synack
119int                             sysctl_tcp_invalid_ratelimit
120int                             sysctl_tcp_pacing_ss_ratio                                                           default_cong_cont(tcp_update_pacing_rate)
121int                             sysctl_tcp_pacing_ca_ratio                                                           default_cong_cont(tcp_update_pacing_rate)
122int                             sysctl_tcp_wmem[3]                           read_mostly                             tcp_wmem_schedule(sendmsg/sendpage)
123int                             sysctl_tcp_rmem[3]                                               read_mostly         __tcp_grow_window(tx),tcp_rcv_space_adjust(rx)
124unsigned_int                    sysctl_tcp_child_ehash_entries
125unsigned_long                   sysctl_tcp_comp_sack_delay_ns                                                        __tcp_ack_snd_check
126unsigned_long                   sysctl_tcp_comp_sack_slack_ns                                                        __tcp_ack_snd_check
127int                             sysctl_max_syn_backlog
128int                             sysctl_tcp_fastopen
129struct_tcp_congestion_ops       tcp_congestion_control                                                               init_cc
130struct_tcp_fastopen_context     tcp_fastopen_ctx
131unsigned_int                    sysctl_tcp_fastopen_blackhole_timeout
132atomic_t                        tfo_active_disable_times
133unsigned_long                   tfo_active_disable_stamp
134u32                             tcp_challenge_timestamp
135u32                             tcp_challenge_count
136u8                              sysctl_tcp_plb_enabled
137u8                              sysctl_tcp_plb_idle_rehash_rounds
138u8                              sysctl_tcp_plb_rehash_rounds
139u8                              sysctl_tcp_plb_suspend_rto_sec
140int                             sysctl_tcp_plb_cong_thresh
141int                             sysctl_udp_wmem_min
142int                             sysctl_udp_rmem_min
143u8                              sysctl_fib_notify_on_flag_change
144u8                              sysctl_udp_l3mdev_accept
145u8                              sysctl_igmp_llm_reports
146int                             sysctl_igmp_max_memberships
147int                             sysctl_igmp_max_msf
148int                             sysctl_igmp_qrv
149struct_ping_group_range         ping_group_range
150atomic_t                        dev_addr_genid
151unsigned_int                    sysctl_udp_child_hash_entries
152unsigned_long*                  sysctl_local_reserved_ports
153int                             sysctl_ip_prot_sock
154struct_mr_table*                mrt
155struct_list_head                mr_tables
156struct_fib_rules_ops*           mr_rules_ops
157u32                             sysctl_fib_multipath_hash_fields
158u8                              sysctl_fib_multipath_use_neigh
159u8                              sysctl_fib_multipath_hash_policy
160struct_fib_notifier_ops*        notifier_ops
161unsigned_int                    fib_seq
162struct_fib_notifier_ops*        ipmr_notifier_ops
163unsigned_int                    ipmr_seq
164atomic_t                        rt_genid
165siphash_key_t                   ip_id_key
166=============================== ============================================ =================== =================== =================================================
167