]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/tcp_input.c
Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux.git] / net / ipv4 / tcp_input.c
index a2e52ad7cdab3e66a469a8ca850848988b3888d7..88b987ca9ebbbbf0f28ea4560e3731837aea7fb3 100644 (file)
@@ -5814,6 +5814,10 @@ static bool tcp_rcv_fastopen_synack(struct sock *sk, struct sk_buff *synack,
        tcp_fastopen_cache_set(sk, mss, cookie, syn_drop, try_exp);
 
        if (data) { /* Retransmit unacked data in SYN */
+               if (tp->total_retrans)
+                       tp->fastopen_client_fail = TFO_SYN_RETRANSMITTED;
+               else
+                       tp->fastopen_client_fail = TFO_DATA_NOT_ACKED;
                skb_rbtree_walk_from(data) {
                        if (__tcp_retransmit_skb(sk, data, 1))
                                break;