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