diff options
author | Eric Dumazet <[email protected]> | 2014-03-19 21:02:21 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-03-20 16:22:42 -0400 |
commit | 632623153196bf183a69686ed9c07eee98ff1bf8 (patch) | |
tree | 1e09d6a821d8b176f08da6a4e3c24c63a2b2c4ea /net/lapb/lapb_out.c | |
parent | 88050049e7111f074e8887ba5a4cefc9f8fa8d41 (diff) |
tcp: syncookies: do not use getnstimeofday()
While it is true that getnstimeofday() uses about 40 cycles if TSC
is available, it can use 1600 cycles if hpet is the clocksource.
Switch to get_jiffies_64(), as this is more than enough, and
go back to 60 seconds periods.
Fixes: 8c27bd75f04f ("tcp: syncookies: reduce cookie lifetime to 128 seconds")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Florian Westphal <[email protected]>
Acked-by: Florian Westphal <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions