android_kernel_xiaomi_sdm845/net/dccp
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
..
ccids [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ackvec.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ackvec.h [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ccid.c [DCCP]: Initial implementation 2005-08-29 15:49:46 -07:00
ccid.h [CCID]: Check if ccid is NULL in the hc_[tr]x_exit functions 2005-10-10 21:24:20 -07:00
dccp.h [DCCP]: Prepare the AF agnostic core for the introduction of DCCPv6 2006-01-03 13:10:50 -08:00
diag.c [IP_SOCKGLUE]: Remove most of the tcp specific calls 2006-01-03 13:10:58 -08:00
input.c [IP_SOCKGLUE]: Remove most of the tcp specific calls 2006-01-03 13:10:58 -08:00
ipv4.c [IP_SOCKGLUE]: Remove most of the tcp specific calls 2006-01-03 13:10:58 -08:00
ipv6.c [IP_SOCKGLUE]: Remove most of the tcp specific calls 2006-01-03 13:10:58 -08:00
ipv6.h [DCCP]: Introduce DCCPv6 2006-01-03 13:10:52 -08:00
Kconfig [DCCP]: Make the Debug Menu available when DCCP is statically linked too 2005-08-29 16:11:27 -07:00
Makefile [DCCP]: Introduce DCCPv6 2006-01-03 13:10:52 -08:00
minisocks.c [DCCP]: Introduce DCCPv6 2006-01-03 13:10:52 -08:00
options.c [DCCP]: Don't use necessarily the same CCID for tx and rx 2005-09-18 00:18:52 -07:00
output.c [IP_SOCKGLUE]: Remove most of the tcp specific calls 2006-01-03 13:10:58 -08:00
proto.c [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
timer.c [DCCP]: Fix the ACK and SEQ window variables settings 2005-08-29 16:03:42 -07:00