Re: [PATCH] [NET] : move struct proto_ops to const

2005-12-23 Thread Arnaldo Carvalho de Melo
On 12/22/05, David S. Miller <[EMAIL PROTECTED]> wrote: > From: Eric Dumazet <[EMAIL PROTECTED]> > Date: Sat, 17 Dec 2005 11:55:06 +0100 > > > 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 s

Re: [PATCH] [NET] : move struct proto_ops to const

2005-12-22 Thread David S. Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Sat, 17 Dec 2005 11:55:06 +0100 > 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 should reduce the possibility of false sharing on SMP, and speedup so

[PATCH] [NET] : move struct proto_ops to const

2005-12-17 Thread Eric Dumazet
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 cp