chtls: fix tp->rcv_tstamp initialization
[ Upstream commit 225d9ddbacb102621af6d28ff7bf5a0b4ce249d8 ]
tp->rcv_tstamp should be set to tcp_jiffies, not tcp_time_stamp().
Fixes: cc35c88ae4
("crypto : chtls - CPL handler definition")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
d104f6cb41
commit
76894f305c
@@ -2259,7 +2259,7 @@ static void chtls_rx_ack(struct sock *sk, struct sk_buff *skb)
|
|||||||
|
|
||||||
if (tp->snd_una != snd_una) {
|
if (tp->snd_una != snd_una) {
|
||||||
tp->snd_una = snd_una;
|
tp->snd_una = snd_una;
|
||||||
tp->rcv_tstamp = tcp_time_stamp(tp);
|
tp->rcv_tstamp = tcp_jiffies32;
|
||||||
if (tp->snd_una == tp->snd_nxt &&
|
if (tp->snd_una == tp->snd_nxt &&
|
||||||
!csk_flag_nochk(csk, CSK_TX_FAILOVER))
|
!csk_flag_nochk(csk, CSK_TX_FAILOVER))
|
||||||
csk_reset_flag(csk, CSK_TX_WAIT_IDLE);
|
csk_reset_flag(csk, CSK_TX_WAIT_IDLE);
|
||||||
|
Reference in New Issue
Block a user