diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 0d5239c283cb..70c370b93762 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -3087,8 +3087,7 @@ static void tcp_ack_tstamp(struct sock *sk, struct sk_buff *skb, | |||
3087 | return; | 3087 | return; |
3088 | 3088 | ||
3089 | shinfo = skb_shinfo(skb); | 3089 | shinfo = skb_shinfo(skb); |
3090 | if ((shinfo->tx_flags & SKBTX_ACK_TSTAMP) && | 3090 | if (!before(shinfo->tskey, prior_snd_una) && |
3091 | !before(shinfo->tskey, prior_snd_una) && | ||
3092 | before(shinfo->tskey, tcp_sk(sk)->snd_una)) | 3091 | before(shinfo->tskey, tcp_sk(sk)->snd_una)) |
3093 | __skb_tstamp_tx(skb, NULL, sk, SCM_TSTAMP_ACK); | 3092 | __skb_tstamp_tx(skb, NULL, sk, SCM_TSTAMP_ACK); |
3094 | } | 3093 | } |