]> git.baikalelectronics.ru Git - kernel.git/commit
net-timestamp: cumulative tcp timestamping fixes
authorWillem de Bruijn <willemb@google.com>
Wed, 6 Aug 2014 19:09:44 +0000 (15:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Aug 2014 21:09:01 +0000 (14:09 -0700)
commitbb51fb5d1c755e59ef78dbadf488f804a3df4941
tree433ad51129e91defe42fd78d16551bb425326704
parente62f6f1b4e5918a4cef0fb7c64b719f607a1408c
net-timestamp: cumulative tcp timestamping fixes

A set of small fixes pointed out just after the merge:
- make tcp_tx_timestamp static
- make tcp_gso_tstamp static
- use before() to compare TCP seqno, instead of cast to u64
- add tstamp to tx_flags in GSO, instead of overwrite tx_flags
- record skb_shinfo(skb)->tskey for all timestamps, also HW.
- optimization in tcp_tx_timestamp:
  call sock_tx_timestamp only if a tstamp option is set.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Fixes: 9a28431b5a06 ("net-timestamp: TCP timestamping")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c
net/ipv4/tcp_offload.c