chtls: fix tp->rcv_tstamp initialization
authorEric Dumazet <edumazet@google.com>
Fri, 20 Oct 2023 12:57:36 +0000 (12:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2023 08:35:00 +0000 (09:35 +0100)
tp->rcv_tstamp should be set to tcp_jiffies, not tcp_time_stamp().

Fixes: cc35c88ae4db ("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>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c

index 7750702900fa60b3405992e6c6c465b43abff116..6f6525983130e7701e9c6530afbecb9ae374d7ee 100644 (file)
@@ -2259,7 +2259,7 @@ static void chtls_rx_ack(struct sock *sk, struct sk_buff *skb)
 
                if (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 &&
                            !csk_flag_nochk(csk, CSK_TX_FAILOVER))
                                csk_reset_flag(csk, CSK_TX_WAIT_IDLE);