]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc58c68d8af4ea8b3dc710b05568e6e3e528fcb71
tree7bb22e541a0be9b507e4fe53f2d3de219ce41def
parent10a5c392da41187d71b1666526bda82e58c2f093
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