From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 759BAC433E0 for ; Mon, 1 Jun 2020 18:17:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 45E282073B for ; Mon, 1 Jun 2020 18:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591035464; bh=S2SI/ZGiBbnJng5OesmlFF79jiK584W1YvWabB6Yq4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=oE3fjeInhuE9GxK1ddQWI5ucHqrvFThOZ2wvcDRminN4KzthRz9OQxIxDD1Ji+zNA VZlCO0f9+WbKlGKFDQHoSnatqz9BlHZN7jxjbhvgN3qxOmgDypGrklg8XlGjuP8V0L eaPQruuY1LI1VxGk16WTVv19GBhpgCNLM1bwdtKo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731861AbgFASRn (ORCPT ); Mon, 1 Jun 2020 14:17:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:38890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731586AbgFASRi (ORCPT ); Mon, 1 Jun 2020 14:17:38 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7175F2065C; Mon, 1 Jun 2020 18:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591035457; bh=S2SI/ZGiBbnJng5OesmlFF79jiK584W1YvWabB6Yq4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SrdVGN2W57YoVk58HZkowVybne5vZ3W9u7HbRcUkJ02aEiv+VP5dr91u+0nBnAD8A n8m8SvY25RbEDBUh/5u8K0qpySg1hQS+BIZughsDp3RppQDHZibK78pM70GBjSFlEp X/5RTgYLxRWzjNh75cSQL+Ppe9nLYUrG0ZGW1awE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Ayush Sawal , Vinay Kumar Yadav , "David S. Miller" Subject: [PATCH 5.6 166/177] crypto: chelsio/chtls: properly set tp->lsndtime Date: Mon, 1 Jun 2020 19:55:04 +0200 Message-Id: <20200601174102.009683200@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174048.468952319@linuxfoundation.org> References: <20200601174048.468952319@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet 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 Cc: Ayush Sawal Cc: Vinay Kumar Yadav Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/chelsio/chtls/chtls_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/chelsio/chtls/chtls_io.c +++ b/drivers/crypto/chelsio/chtls/chtls_io.c @@ -682,7 +682,7 @@ int chtls_push_frames(struct chtls_sock 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 {