xref: /linux/Documentation/networking/net_cachelines/netns_ipv4_sysctl.rst (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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
55u8                              sysctl_ip_early_demux                                            read_mostly         ip(6)_rcv_finish_core
56u8                              sysctl_raw_l3mdev_accept
57u8                              sysctl_tcp_early_demux                                           read_mostly         ip(6)_rcv_finish_core
58u8                              sysctl_udp_early_demux
59u8                              sysctl_nexthop_compat_mode
60u8                              sysctl_fwmark_reflect
61u8                              sysctl_tcp_fwmark_accept
62u8                              sysctl_tcp_l3mdev_accept                                         read_mostly         __inet6_lookup_established/inet_request_bound_dev_if
63u8                              sysctl_tcp_mtu_probing
64int                             sysctl_tcp_mtu_probe_floor
65int                             sysctl_tcp_base_mss
66int                             sysctl_tcp_min_snd_mss                       read_mostly                             __tcp_mtu_to_mss(tcp_write_xmit)
67int                             sysctl_tcp_probe_threshold                                                           tcp_mtu_probe(tcp_write_xmit)
68u32                             sysctl_tcp_probe_interval                                                            tcp_mtu_check_reprobe(tcp_write_xmit)
69int                             sysctl_tcp_keepalive_time
70int                             sysctl_tcp_keepalive_intvl
71u8                              sysctl_tcp_keepalive_probes
72u8                              sysctl_tcp_syn_retries
73u8                              sysctl_tcp_synack_retries
74u8                              sysctl_tcp_syncookies                                                                generated_on_syn
75u8                              sysctl_tcp_migrate_req                                                               reuseport
76u8                              sysctl_tcp_comp_sack_nr                                                              __tcp_ack_snd_check
77int                             sysctl_tcp_reordering                                            read_mostly         tcp_may_raise_cwnd/tcp_cong_control
78u8                              sysctl_tcp_retries1
79u8                              sysctl_tcp_retries2
80u8                              sysctl_tcp_orphan_retries
81u8                              sysctl_tcp_tw_reuse                                                                  timewait_sock_ops
82int                             sysctl_tcp_fin_timeout                                                               TCP_LAST_ACK/tcp_rcv_state_process
83unsigned_int                    sysctl_tcp_notsent_lowat                     read_mostly                             tcp_notsent_lowat/tcp_stream_memory_free
84u8                              sysctl_tcp_sack                                                                      tcp_syn_options
85u8                              sysctl_tcp_window_scaling                                                            tcp_syn_options,tcp_parse_options
86u8                              sysctl_tcp_timestamps
87u8                              sysctl_tcp_early_retrans                     read_mostly                             tcp_schedule_loss_probe(tcp_write_xmit)
88u8                              sysctl_tcp_recovery                                                                  tcp_fastretrans_alert
89u8                              sysctl_tcp_thin_linear_timeouts                                                      tcp_retrans_timer(on_thin_streams)
90u8                              sysctl_tcp_slow_start_after_idle                                                     unlikely(tcp_cwnd_validate-network-not-starved)
91u8                              sysctl_tcp_retrans_collapse
92u8                              sysctl_tcp_stdurg                                                                    unlikely(tcp_check_urg)
93u8                              sysctl_tcp_rfc1337
94u8                              sysctl_tcp_abort_on_overflow
95u8                              sysctl_tcp_fack
96int                             sysctl_tcp_max_reordering                                                            tcp_check_sack_reordering
97int                             sysctl_tcp_adv_win_scale                                                             tcp_init_buffer_space
98u8                              sysctl_tcp_dsack                                                                     partial_packet_or_retrans_in_tcp_data_queue
99u8                              sysctl_tcp_app_win                                                                   tcp_win_from_space
100u8                              sysctl_tcp_frto                                                                      tcp_enter_loss
101u8                              sysctl_tcp_nometrics_save                                                            TCP_LAST_ACK/tcp_update_metrics
102u8                              sysctl_tcp_no_ssthresh_metrics_save                                                  TCP_LAST_ACK/tcp_(update/init)_metrics
103u8                              sysctl_tcp_moderate_rcvbuf                   read_mostly         read_mostly         tcp_tso_should_defer(tx);tcp_rcv_space_adjust(rx)
104u8                              sysctl_tcp_tso_win_divisor                   read_mostly                             tcp_tso_should_defer(tcp_write_xmit)
105u8                              sysctl_tcp_workaround_signed_windows                                                 tcp_select_window
106int                             sysctl_tcp_limit_output_bytes                read_mostly                             tcp_small_queue_check(tcp_write_xmit)
107int                             sysctl_tcp_challenge_ack_limit
108int                             sysctl_tcp_min_rtt_wlen                      read_mostly                             tcp_ack_update_rtt
109u8                              sysctl_tcp_min_tso_segs                                                              unlikely(icsk_ca_ops-written)
110u8                              sysctl_tcp_tso_rtt_log                       read_mostly                             tcp_tso_autosize
111u8                              sysctl_tcp_autocorking                       read_mostly                             tcp_push/tcp_should_autocork
112u8                              sysctl_tcp_reflect_tos                                                               tcp_v(4/6)_send_synack
113int                             sysctl_tcp_invalid_ratelimit
114int                             sysctl_tcp_pacing_ss_ratio                                                           default_cong_cont(tcp_update_pacing_rate)
115int                             sysctl_tcp_pacing_ca_ratio                                                           default_cong_cont(tcp_update_pacing_rate)
116int                             sysctl_tcp_wmem[3]                           read_mostly                             tcp_wmem_schedule(sendmsg/sendpage)
117int                             sysctl_tcp_rmem[3]                                               read_mostly         __tcp_grow_window(tx),tcp_rcv_space_adjust(rx)
118unsigned_int                    sysctl_tcp_child_ehash_entries
119unsigned_long                   sysctl_tcp_comp_sack_delay_ns                                                        __tcp_ack_snd_check
120unsigned_long                   sysctl_tcp_comp_sack_slack_ns                                                        __tcp_ack_snd_check
121int                             sysctl_max_syn_backlog
122int                             sysctl_tcp_fastopen
123struct_tcp_congestion_ops       tcp_congestion_control                                                               init_cc
124struct_tcp_fastopen_context     tcp_fastopen_ctx
125unsigned_int                    sysctl_tcp_fastopen_blackhole_timeout
126atomic_t                        tfo_active_disable_times
127unsigned_long                   tfo_active_disable_stamp
128u32                             tcp_challenge_timestamp
129u32                             tcp_challenge_count
130u8                              sysctl_tcp_plb_enabled
131u8                              sysctl_tcp_plb_idle_rehash_rounds
132u8                              sysctl_tcp_plb_rehash_rounds
133u8                              sysctl_tcp_plb_suspend_rto_sec
134int                             sysctl_tcp_plb_cong_thresh
135int                             sysctl_udp_wmem_min
136int                             sysctl_udp_rmem_min
137u8                              sysctl_fib_notify_on_flag_change
138u8                              sysctl_udp_l3mdev_accept
139u8                              sysctl_igmp_llm_reports
140int                             sysctl_igmp_max_memberships
141int                             sysctl_igmp_max_msf
142int                             sysctl_igmp_qrv
143struct_ping_group_range         ping_group_range
144atomic_t                        dev_addr_genid
145unsigned_int                    sysctl_udp_child_hash_entries
146unsigned_long*                  sysctl_local_reserved_ports
147int                             sysctl_ip_prot_sock
148struct_mr_table*                mrt
149struct_list_head                mr_tables
150struct_fib_rules_ops*           mr_rules_ops
151u32                             sysctl_fib_multipath_hash_fields
152u8                              sysctl_fib_multipath_use_neigh
153u8                              sysctl_fib_multipath_hash_policy
154struct_fib_notifier_ops*        notifier_ops
155unsigned_int                    fib_seq
156struct_fib_notifier_ops*        ipmr_notifier_ops
157unsigned_int                    ipmr_seq
158atomic_t                        rt_genid
159siphash_key_t                   ip_id_key
160=============================== ============================================ =================== =================== =================================================
161