diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-02-12 16:15:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-02-12 16:15:20 -0500 |
commit | 59758f44592b0930e83b190cf0206e59d616c983 (patch) | |
tree | 5b2c5a4cc02d10d686aae619bc04879bbe15e562 /net/ipv4 | |
parent | 3aef0fd91c67f4070c8dc607807615c4bdd66bd1 (diff) |
[TCP]: Use read mostly for CUBIC parameters.
These module parameters should be in the read mostly area to avoid
cache pollution.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_cubic.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c index 5ce6cd85680..9a582fb4ef9 100644 --- a/net/ipv4/tcp_cubic.c +++ b/net/ipv4/tcp_cubic.c | |||
@@ -26,16 +26,16 @@ | |||
26 | */ | 26 | */ |
27 | #define BICTCP_HZ 10 /* BIC HZ 2^10 = 1024 */ | 27 | #define BICTCP_HZ 10 /* BIC HZ 2^10 = 1024 */ |
28 | 28 | ||
29 | static int fast_convergence = 1; | 29 | static int fast_convergence __read_mostly = 1; |
30 | static int max_increment = 16; | 30 | static int max_increment __read_mostly = 16; |
31 | static int beta = 819; /* = 819/1024 (BICTCP_BETA_SCALE) */ | 31 | static int beta __read_mostly = 819; /* = 819/1024 (BICTCP_BETA_SCALE) */ |
32 | static int initial_ssthresh = 100; | 32 | static int initial_ssthresh __read_mostly = 100; |
33 | static int bic_scale = 41; | 33 | static int bic_scale __read_mostly = 41; |
34 | static int tcp_friendliness = 1; | 34 | static int tcp_friendliness __read_mostly = 1; |
35 | 35 | ||
36 | static u32 cube_rtt_scale; | 36 | static u32 cube_rtt_scale __read_mostly; |
37 | static u32 beta_scale; | 37 | static u32 beta_scale __read_mostly; |
38 | static u64 cube_factor; | 38 | static u64 cube_factor __read_mostly; |
39 | 39 | ||
40 | /* Note parameters that are used for precomputing scale factors are read-only */ | 40 | /* Note parameters that are used for precomputing scale factors are read-only */ |
41 | module_param(fast_convergence, int, 0644); | 41 | module_param(fast_convergence, int, 0644); |