[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250718170108.GK2459@horms.kernel.org>
Date: Fri, 18 Jul 2025 18:01:08 +0100
From: Simon Horman <horms@...nel.org>
To: Alok Tiwari <alok.a.tiwari@...cle.com>
Cc: somnath.kotur@...adcom.com, ajit.khaparde@...adcom.com,
sriharsha.basavapatna@...adcom.com, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] be2net: Use correct byte order and format
string for TCP seq and ack_seq
On Thu, Jul 17, 2025 at 12:35:47PM -0700, Alok Tiwari wrote:
> The TCP header fields seq and ack_seq are 32-bit values in network
> byte order as (__be32). these fields were earlier printed using
> ntohs(), which converts only 16-bit values and produces incorrect
> results for 32-bit fields. This patch is changeing the conversion
> to ntohl(), ensuring correct interpretation of these sequence numbers.
>
> Notably, the format specifier is updated from %d to %u to reflect the
> unsigned nature of these fields.
>
> improves the accuracy of debug log messages for TCP sequence and
> acknowledgment numbers during TX timeouts.
>
> Signed-off-by: Alok Tiwari <alok.a.tiwari@...cle.com>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists