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)
commitf066e2b091a50f0b76ade87250065d65996b93dd
tree433ad51129e91defe42fd78d16551bb425326704
parentbe136ed30a4345e42ad846c1b9d925932dab303b
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: 4ed2d765dfac ("net-timestamp: TCP timestamping")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c
net/ipv4/tcp_offload.c