diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-10-23 05:06:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-23 17:01:41 -0400 |
commit | 7088ad74e6e710d0c80ea2cead9500f47a2a5d58 (patch) | |
tree | 5e0931546c135c8802911ed2e5218c825b59ae2f /include | |
parent | b1190570b451fb9fd77be8c115fcdb418c5108a5 (diff) |
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 'include')
-rw-r--r-- | include/net/inet_frag.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index bfcbc0017950..6f59de98dabd 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h | |||
@@ -64,6 +64,10 @@ struct inet_frags { | |||
64 | rwlock_t lock ____cacheline_aligned_in_smp; | 64 | rwlock_t lock ____cacheline_aligned_in_smp; |
65 | int secret_interval; | 65 | int secret_interval; |
66 | struct timer_list secret_timer; | 66 | struct timer_list secret_timer; |
67 | |||
68 | /* The first call to hashfn is responsible to initialize | ||
69 | * rnd. This is best done with net_get_random_once. | ||
70 | */ | ||
67 | u32 rnd; | 71 | u32 rnd; |
68 | int qsize; | 72 | int qsize; |
69 | 73 | ||