xref: /linux/Documentation/networking/net_cachelines/inet_sock.rst (revision a23e1966932464e1c5226cb9ac4ce1d5fc10ba22)
1.. SPDX-License-Identifier: GPL-2.0
2.. Copyright (C) 2023 Google LLC
3
4==========================================
5inet_sock struct fast path usage breakdown
6==========================================
7
8Type                    Name                  fastpath_tx_access  fastpath_rx_access  comment
9..struct                ..inet_sock
10struct_sock             sk                    read_mostly         read_mostly         tcp_init_buffer_space,tcp_init_transfer,tcp_finish_connect,tcp_connect,tcp_send_rcvq,tcp_send_syn_data
11struct_ipv6_pinfo*      pinet6                -                   -
12be16                    inet_sport            read_mostly         -                   __tcp_transmit_skb
13be32                    inet_daddr            read_mostly         -                   ip_select_ident_segs
14be32                    inet_rcv_saddr        -                   -
15be16                    inet_dport            read_mostly         -                   __tcp_transmit_skb
16u16                     inet_num              -                   -
17be32                    inet_saddr            -                   -
18s16                     uc_ttl                read_mostly         -                   __ip_queue_xmit/ip_select_ttl
19u16                     cmsg_flags            -                   -
20struct_ip_options_rcu*  inet_opt              read_mostly         -                   __ip_queue_xmit
21u16                     inet_id               read_mostly         -                   ip_select_ident_segs
22u8                      tos                   read_mostly         -                   ip_queue_xmit
23u8                      min_ttl               -                   -
24u8                      mc_ttl                -                   -
25u8                      pmtudisc              -                   -
26u8:1                    recverr               -                   -
27u8:1                    is_icsk               -                   -
28u8:1                    freebind              -                   -
29u8:1                    hdrincl               -                   -
30u8:1                    mc_loop               -                   -
31u8:1                    transparent           -                   -
32u8:1                    mc_all                -                   -
33u8:1                    nodefrag              -                   -
34u8:1                    bind_address_no_port  -                   -
35u8:1                    recverr_rfc4884       -                   -
36u8:1                    defer_connect         read_mostly         -                   tcp_sendmsg_fastopen
37u8                      rcv_tos               -                   -
38u8                      convert_csum          -                   -
39int                     uc_index              -                   -
40int                     mc_index              -                   -
41be32                    mc_addr               -                   -
42struct_ip_mc_socklist*  mc_list               -                   -
43struct_inet_cork_full   cork                  read_mostly         -                   __tcp_transmit_skb
44struct                  local_port_range      -                   -
45