summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorHannes Frederic Sowa <hannes@stressinduktion.org>2013-10-23 11:06:57 +0200
committerDavid S. Miller <davem@davemloft.net>2013-10-23 17:01:41 -0400
commit7088ad74e6e710d0c80ea2cead9500f47a2a5d58 (patch)
tree5e0931546c135c8802911ed2e5218c825b59ae2f /net
parentb1190570b451fb9fd77be8c115fcdb418c5108a5 (diff)
downloadlinux-stable-7088ad74e6e710d0c80ea2cead9500f47a2a5d58.tar.gz
linux-stable-7088ad74e6e710d0c80ea2cead9500f47a2a5d58.tar.bz2
linux-stable-7088ad74e6e710d0c80ea2cead9500f47a2a5d58.zip
inet: remove old fragmentation hash initializing
All fragmentation hash secrets now get initialized by their corresponding hash function with net_get_random_once. Thus we can eliminate the initial seeding. Also provide a comment that hash secret seeding happens at the first call to the corresponding hashing function. Cc: David S. Miller <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/inet_fragment.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c
index c5313a9c019b..bb075fc9a14f 100644
--- a/net/ipv4/inet_fragment.c
+++ b/net/ipv4/inet_fragment.c
@@ -93,9 +93,6 @@ void inet_frags_init(struct inet_frags *f)
}
rwlock_init(&f->lock);
- f->rnd = (u32) ((totalram_pages ^ (totalram_pages >> 7)) ^
- (jiffies ^ (jiffies >> 6)));
-
setup_timer(&f->secret_timer, inet_frag_secret_rebuild,
(unsigned long)f);
f->secret_timer.expires = jiffies + f->secret_interval;