]> git.baikalelectronics.ru Git - kernel.git/commitdiff
crypto: chelsio/chtls: properly set tp->lsndtime
authorEric Dumazet <edumazet@google.com>
Wed, 27 May 2020 00:28:56 +0000 (17:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 06:24:00 +0000 (23:24 -0700)
TCP tp->lsndtime unit/base is tcp_jiffies32, not tcp_time_stamp()

Fixes: bc8b43c5f728 ("crypto: chtls - Inline TLS record Tx")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ayush Sawal <ayush.sawal@chelsio.com>
Cc: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chtls/chtls_io.c

index dccef3a2908b391e772944d504d953a062001d9f..e1401d9cc756cea07f7ad310c17fed29e0f3e9db 100644 (file)
@@ -682,7 +682,7 @@ int chtls_push_frames(struct chtls_sock *csk, int comp)
                                make_tx_data_wr(sk, skb, immdlen, len,
                                                credits_needed, completion);
                        tp->snd_nxt += len;
-                       tp->lsndtime = tcp_time_stamp(tp);
+                       tp->lsndtime = tcp_jiffies32;
                        if (completion)
                                ULP_SKB_CB(skb)->flags &= ~ULPCB_FLAG_NEED_HDR;
                } else {