diff options
author | Florian Westphal <fw@strlen.de> | 2014-08-26 12:55:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-28 01:30:49 +0200 |
commit | 253ff51635ad6690276ef065d59523c4bd1cd584 (patch) | |
tree | 7024bed49e3532b3a382c66150fd2c3681559c87 /net/ipv4/syncookies.c | |
parent | bnx2x: Fix static checker warning regarding `txdata_ptr' (diff) | |
download | linux-253ff51635ad6690276ef065d59523c4bd1cd584.tar.xz linux-253ff51635ad6690276ef065d59523c4bd1cd584.zip |
tcp: syncookies: mark cookie_secret read_mostly
only written once.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index c0c75688896e..0431a8f3c8f4 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c @@ -25,7 +25,7 @@ extern int sysctl_tcp_syncookies; -static u32 syncookie_secret[2][16-4+SHA_DIGEST_WORDS]; +static u32 syncookie_secret[2][16-4+SHA_DIGEST_WORDS] __read_mostly; #define COOKIEBITS 24 /* Upper bits store count */ #define COOKIEMASK (((__u32)1 << COOKIEBITS) - 1) |