linux/drivers/net/ethernet/emulex/benet
Alok Tiwari 4701ee5044 be2net: Use correct byte order and format string for TCP seq and ack_seq
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@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250717193552.3648791-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-18 17:31:16 -07:00
..
be.h
be_cmds.c emulex/benet: correct command version selection in be_cmd_get_stats() 2025-05-21 20:30:51 -07:00
be_cmds.h emulex/benet: Annotate flash_cookie as nonstring 2025-04-22 18:22:12 -07:00
be_ethtool.c eth: benet: migrate to new RXFH callbacks 2025-06-21 07:54:52 -07:00
be_hw.h
be_main.c be2net: Use correct byte order and format string for TCP seq and ack_seq 2025-07-18 17:31:16 -07:00
be_roce.c
be_roce.h
Kconfig
Makefile