kernel-ark/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
..
802 [NET]: kfree cleanup 2005-11-08 09:41:34 -08:00
8021q [VLAN]: Add two missing checks to vlan_ioctl_handler() 2005-12-21 18:39:49 -08:00
appletalk [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
atm [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
ax25 [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
bluetooth [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
bridge [BRIDGE]: add version number 2006-01-03 13:11:04 -08:00
core [TWSK]: Introduce struct timewait_sock_ops 2006-01-03 13:10:54 -08:00
dccp [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
decnet [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
econet [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
ethernet [NET]: kfree cleanup 2005-11-08 09:41:34 -08:00
ieee80211 [PATCH] ieee80211_crypt_tkip depends on NET_RADIO 2005-12-12 23:59:28 -05:00
ipv4 [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
ipv6 [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
ipx [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
irda [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
key [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
lapb [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
llc [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
netfilter [NETFILTER]: Wait for untracked references in nf_conntrack module unload 2005-12-05 13:36:50 -08:00
netlink [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
netrom [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
packet [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
rose [NET]: kfree cleanup 2005-11-08 09:41:34 -08:00
rxrpc [NET]: Detect hardware rx checksum faults correctly 2005-11-10 13:01:24 -08:00
sched [PKT_SCHED] netem: packet corruption option 2006-01-03 13:11:05 -08:00
sctp [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
sunrpc [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
unix [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
wanrouter [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
x25 [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
xfrm [LSM-IPSec]: Security association restriction. 2006-01-03 13:10:24 -08:00
compat.c [PATCH] Fix 32bit sendmsg() flaw 2005-09-08 08:14:11 -07:00
Kconfig [NETFILTER] move nfnetlink options to right location in kconfig menu 2005-09-17 00:41:21 -07:00
Makefile [NETFILTER]: link 'netfilter' before ipv4 2005-11-14 15:25:59 -08:00
nonet.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
socket.c [NET]: Small cleanup to socket initialization 2006-01-03 13:11:14 -08:00
sysctl_net.c [NET]: Fix "sysctl_net.c:36: error: 'core_table' undeclared here" 2005-10-03 14:16:34 -07:00
TUNABLE Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00