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
..
2005-11-08 09:57:38 -08:00
2005-09-05 18:08:11 -07:00
2005-11-09 16:38:16 -08:00
2006-01-03 13:11:13 -08:00
2005-04-24 20:10:16 -07:00
2005-08-29 15:31:18 -07:00
2005-05-19 12:42:39 -07:00
2005-08-29 16:01:32 -07:00
2006-01-03 13:10:59 -08:00
2005-04-16 15:20:36 -07:00
2005-08-29 15:32:25 -07:00
2005-04-16 15:20:36 -07:00
2005-10-28 16:53:13 -04:00
2005-04-16 15:20:36 -07:00
2005-09-08 12:32:46 -07:00
2005-08-29 15:32:25 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-08 15:00:57 -07:00
2005-10-08 15:00:57 -07:00
2005-12-05 13:42:06 -08:00
2005-04-16 15:20:36 -07:00
2005-10-26 00:48:45 -02:00
2005-04-16 15:20:36 -07:00
2006-01-03 13:10:24 -08:00
2005-04-16 15:20:36 -07:00
2005-11-10 02:26:41 +01:00
2005-08-29 16:01:32 -07:00
2005-11-09 01:01:04 -05:00
2005-09-21 23:03:55 -04:00
2005-11-18 13:33:31 -05:00
2005-12-27 14:03:00 -08:00
2006-01-03 13:10:46 -08:00
2006-01-03 13:10:47 -08:00
2006-01-03 13:11:15 -08:00
2006-01-03 13:10:58 -08:00
2005-11-05 22:02:24 +01:00
2006-01-03 13:10:55 -08:00
2006-01-03 13:10:54 -08:00
2006-01-03 13:10:31 -08:00
2005-04-16 15:20:36 -07:00
2005-06-21 13:51:04 -07:00
2005-08-29 15:41:54 -07:00
2005-04-16 15:20:36 -07:00
2005-08-29 16:01:32 -07:00
2005-04-16 15:20:36 -07:00
2005-10-08 15:00:57 -07:00
2006-01-03 13:10:31 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-03 13:11:15 -08:00
2005-04-16 15:20:36 -07:00
2005-09-06 22:40:24 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-08 15:00:57 -07:00
2005-04-16 15:20:36 -07:00
2005-11-14 21:58:18 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-22 07:57:21 -03:00
2005-09-22 05:14:33 -03:00
2005-04-16 15:20:36 -07:00
2005-08-29 15:58:24 -07:00
2005-11-10 02:26:40 +01:00
2005-10-28 16:53:13 -04:00
2005-08-29 16:01:32 -07:00
2005-04-16 15:20:36 -07:00
2005-08-29 15:33:26 -07:00
2005-07-05 14:15:09 -07:00
2006-01-03 13:11:15 -08:00
2005-08-29 15:32:25 -07:00
2005-08-29 16:01:32 -07:00
2005-08-29 15:37:22 -07:00
2005-11-05 22:02:24 +01:00
2006-01-03 13:10:36 -08:00
2005-04-16 15:20:36 -07:00
2005-11-22 14:47:37 -08:00
2005-07-05 14:15:09 -07:00
2005-04-16 15:20:36 -07:00
2005-07-05 15:12:04 -07:00
2005-06-21 18:46:13 -07:00
2006-01-03 13:10:54 -08:00
2005-09-14 08:36:54 -04:00
2005-08-29 15:43:19 -07:00
2006-01-03 13:10:57 -08:00
2006-01-03 13:10:54 -08:00
2006-01-03 13:10:54 -08:00
2006-01-03 13:10:38 -08:00
2005-08-29 16:01:32 -07:00
2005-08-29 15:32:25 -07:00
2005-08-29 15:33:26 -07:00
2006-01-03 13:10:24 -08:00