android_kernel_xiaomi_sm8350/include/net
Eric Dumazet 90ddc4f047 [NET]: move struct proto_ops to const
I noticed that some of 'struct proto_ops' used in the kernel may share
a cache line used by locks or other heavily modified data. (default
linker alignement is 32 bytes, and L1_CACHE_LINE is 64 or 128 at
least)

This patch makes sure a 'struct proto_ops' can be declared as const,
so that all cpus can share all parts of it without false sharing.

This is not mandatory : a driver can still use a read/write structure
if it needs to (and eventually a __read_mostly)

I made a global stubstitute to change all existing occurences to make
them const.

This should reduce the possibility of false sharing on SMP, and
speedup some socket system calls.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-01-03 13:11:15 -08:00
..
bluetooth [Bluetooth]: Remove the usage of /proc completely 2005-11-08 09:57:38 -08:00
irda
netfilter [NETFILTER]: Add nf_conntrack subsystem. 2005-11-09 16:38:16 -08:00
sctp [SCTP]: Add support for SCTP_DELAYED_ACK_TIME socket option. 2006-01-03 13:11:13 -08:00
tc_act
act_api.h
act_generic.h
addrconf.h
af_unix.h [AF_UNIX]: Use spinlock for unix_table_lock 2006-01-03 13:10:59 -08:00
ah.h
arp.h
atmclip.h
ax25.h drivers/net: Remove pointless checks for NULL prior to calling kfree() 2005-10-28 16:53:13 -04:00
checksum.h
compat.h
datalink.h
dn_dev.h
dn_fib.h
dn_neigh.h
dn_nsp.h [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
dn_route.h [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
dn.h [DECNET]: add memory buffer settings 2005-12-05 13:42:06 -08:00
dsfield.h
dst.h [IPSEC]: Kill obsolete get_mss function 2005-10-26 00:48:45 -02:00
esp.h
flow.h [LSM-IPSec]: Security association restriction. 2006-01-03 13:10:24 -08:00
gen_stats.h
genetlink.h [NETLINK]: Generic netlink family 2005-11-10 02:26:41 +01:00
icmp.h
ieee80211_crypt.h ieee80211: cleanup crypto list handling, other minor cleanups. 2005-11-09 01:01:04 -05:00
ieee80211_radiotap.h
ieee80211.h [PATCH] git-netdev-all-ieee80211_get_payload-warning-fix 2005-11-18 13:33:31 -05:00
if_inet6.h [IPV6] mcast: Fix multiple issues in MLDv2 reports. 2005-12-27 14:03:00 -08:00
inet6_connection_sock.h [IPV6]: Generalise some functions 2006-01-03 13:10:46 -08:00
inet6_hashtables.h [IPV6]: Introduce inet6_timewait_sock 2006-01-03 13:10:47 -08:00
inet_common.h [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
inet_connection_sock.h [IP_SOCKGLUE]: Remove most of the tcp specific calls 2006-01-03 13:10:58 -08:00
inet_ecn.h [NET]: Introduce INET_ECN_set_ce() function 2005-11-05 22:02:24 +01:00
inet_hashtables.h [INET]: Generalise tcp_v4_hash_connect 2006-01-03 13:10:55 -08:00
inet_timewait_sock.h [TWSK]: Introduce struct timewait_sock_ops 2006-01-03 13:10:54 -08:00
inetpeer.h [IPV4]: Safer reassembly 2006-01-03 13:10:31 -08:00
ip6_checksum.h
ip6_fib.h
ip6_route.h
ip6_tunnel.h
ip_fib.h
ip_mp_alg.h
ip_vs.h [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ip.h [IPV4]: Safer reassembly 2006-01-03 13:10:31 -08:00
ipcomp.h
ipconfig.h
ipip.h
ipv6.h [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
ipx.h
iw_handler.h
lapb.h
llc_c_ac.h
llc_c_ev.h
llc_c_st.h
llc_conn.h [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
llc_if.h
llc_pdu.h [LLC]: Fix typo 2005-11-14 21:58:18 -08:00
llc_s_ac.h
llc_s_ev.h
llc_s_st.h
llc_sap.h
llc.h
ndisc.h
neighbour.h
netlink.h [NETLINK]: Generic netlink receive queue processor 2005-11-10 02:26:40 +01:00
netrom.h drivers/net: Remove pointless checks for NULL prior to calling kfree() 2005-10-28 16:53:13 -04:00
p8022.h
pkt_act.h
pkt_cls.h
pkt_sched.h
protocol.h [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
psnap.h
raw.h
rawv6.h
red.h [PKT_SCHED]: Generic RED layer 2005-11-05 22:02:24 +01:00
request_sock.h [IPV6]: Generalise tcp_v6_search_req & tcp_v6_synq_add 2006-01-03 13:10:36 -08:00
rose.h
route.h [IPV4]: Fix secondary IP addresses after promotion 2005-11-22 14:47:37 -08:00
sch_generic.h
scm.h
slhc_vj.h
snmp.h
sock.h [TWSK]: Introduce struct timewait_sock_ops 2006-01-03 13:10:54 -08:00
syncppp.h
tcp_ecn.h
tcp_states.h [TCP]: Move the TCPF_ enum to tcp_states.h 2006-01-03 13:10:57 -08:00
tcp.h [TWSK]: Introduce struct timewait_sock_ops 2006-01-03 13:10:54 -08:00
timewait_sock.h [TWSK]: Introduce struct timewait_sock_ops 2006-01-03 13:10:54 -08:00
transp_v6.h [ICSK]: Rename struct tcp_func to struct inet_connection_sock_af_ops 2006-01-03 13:10:38 -08:00
udp.h
x25.h
x25device.h
xfrm.h [LSM-IPSec]: Security association restriction. 2006-01-03 13:10:24 -08:00