]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:23:35 +0000 (08:23 +0200)
commit a4976a3ef844c510ae9120290b23e9f3f47d6bce upstream.

TCP tp->lsndtime unit/base is tcp_jiffies32, not tcp_time_stamp()

Fixes: 36bedb3f2e5b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/chelsio/chtls/chtls_io.c

index 5cf9b021220b85f94cb42bfbc07e2243595a84e5..fdaed234ae92cc5191748cb059501d882ccadc24 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 {