net-timestamp: fix missing tcp fragmentation cases
authorWillem de Bruijn <willemb@google.com>
Tue, 12 Aug 2014 19:08:12 +0000 (15:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 03:06:06 +0000 (20:06 -0700)
commit490cc7d03c21871eef5949ba77a18b0c7ef70ef5
treebaa7f8953e8cbd89e29515bd13b889e06b7b192a
parent712a72213fad36cc9e6ec706b5e020d7eb6e03bc
net-timestamp: fix missing tcp fragmentation cases

Bytestream timestamps are correlated with a single byte in the skbuff,
recorded in skb_shinfo(skb)->tskey. When fragmenting skbuffs, ensure
that the tskey is set for the fragment in which the tskey falls
(seqno <= tskey < end_seqno).

The original implementation did not address fragmentation in
tcp_fragment or tso_fragment. Add code to inspect the sequence numbers
and move both tskey and the relevant tx_flags if necessary.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c