tcp: Remove one extra ktime_get_ns() from cookie_init_timestamp
authorEric Dumazet <edumazet@google.com>
Thu, 7 Nov 2019 19:51:18 +0000 (11:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 00:17:52 +0000 (16:17 -0800)
commit200ecef67b8d09d16ec55f91c92751dcc7a38d40
tree7bb22e541a0be9b507e4fe53f2d3de219ce41def
parent2386d74845c358f464429c4b071bfc681e913013
tcp: Remove one extra ktime_get_ns() from cookie_init_timestamp

tcp_make_synack() already uses tcp_clock_ns(), and can pass
the value to cookie_init_timestamp() to avoid another call
to ktime_get_ns() helper.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/syncookies.c
net/ipv4/tcp_output.c