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