]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: introduce tcp_skb_timestamp_us() helper
authorEric Dumazet <edumazet@google.com>
Fri, 21 Sep 2018 15:51:47 +0000 (08:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:37:59 +0000 (19:37 -0700)
commitc1e9d88dc5814bf8730fa7661a394509e8e7bdc4
tree0429f0bb89fa036d79e9b9d2105f89c0a3e38ca0
parent2a10a8b75622f69bc12a08a1da07b9a4b47c9b5b
tcp: introduce tcp_skb_timestamp_us() helper

There are few places where TCP reads skb->skb_mstamp expecting
a value in usec unit.

skb->tstamp (aka skb->skb_mstamp) will soon store CLOCK_TAI nsec value.

Add tcp_skb_timestamp_us() to provide proper conversion when needed.

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