Eric Dumazet 3c689b7320 inet: cleanup of local_port_range
I noticed sysctl_local_port_range[] and its associated seqlock
sysctl_local_port_range_lock were on separate cache lines.
Moreover, sysctl_local_port_range[] was close to unrelated
variables, highly modified, leading to cache misses.

Moving these two variables in a structure can help data
locality and moving this structure to read_mostly section
helps sharing of this data among cpus.

Cleanup of extern declarations (moved in include file where
they belong), and use of inet_get_local_port_range()
accessor instead of direct access to ports values.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-08 14:18:04 -07:00
..
2008-07-16 20:31:16 -07:00
2008-07-16 20:20:11 -07:00
2008-09-02 17:28:58 -07:00
2008-08-06 02:39:30 -07:00
2008-10-07 15:34:37 -07:00
2008-06-11 21:00:38 -07:00
2008-07-16 20:20:11 -07:00
2008-06-11 21:00:38 -07:00
2008-06-11 21:00:38 -07:00
2008-03-06 16:22:02 -08:00
2008-06-11 21:00:38 -07:00
2008-07-16 20:19:49 -07:00
2008-05-01 08:03:58 -07:00
2008-06-11 21:00:38 -07:00
2008-10-07 14:43:31 -07:00
2008-10-07 14:43:06 -07:00
2008-10-07 14:43:06 -07:00
2008-07-10 16:51:32 -07:00
2008-10-07 14:18:42 -07:00
2008-10-07 14:43:06 -07:00
2008-10-08 11:44:17 -07:00
2008-03-26 16:51:09 -07:00