netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] Introduce and use netif_xmit_timeout_ms() helper
@ 2025-11-25  7:12 Tariq Toukan
  2025-11-25  7:12 ` [PATCH net-next 1/3] net: Introduce netif_xmit_time_out_duration() helper Tariq Toukan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tariq Toukan @ 2025-11-25  7:12 UTC (permalink / raw)
  To: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller
  Cc: Jian Shen, Salil Mehta, Jijie Shao, Saeed Mahameed, Tariq Toukan,
	Mark Bloch, Leon Romanovsky, Jamal Hadi Salim, Cong Wang,
	Jiri Pirko, netdev, linux-kernel, linux-rdma, Gal Pressman,
	Moshe Shemesh, Yael Chemla, Shahar Shitrit

Hi,

This series by Shahar introduces a new helper function
netif_xmit_timeout_ms() to check if a TX queue has timed out and report
the timeout duration.

Replace open-coded timeout checks in dev_watchdog() and the hns3 driver
with the new helper.

For mlx5e, refine the TX timeout recovery flow to act only on SQs whose
transmit timestamp indicates an actual timeout, as determined by the
helper. This prevents unnecessary channel reopen events caused by
attempting recovery on queues that are merely stopped but not truly
timed out.

Regards,
Tariq

Shahar Shitrit (3):
  net: Introduce netif_xmit_time_out_duration() helper
  net: hns3: Use netif_xmit_timeout_ms() helper
  net/mlx5e: Refine TX timeout handling to skip non-timed-out SQ

 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c   |  5 +----
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c |  2 +-
 include/linux/netdevice.h                         | 15 +++++++++++++++
 net/sched/sch_generic.c                           |  7 +++----
 4 files changed, 20 insertions(+), 9 deletions(-)


base-commit: e05021a829b834fecbd42b173e55382416571b2c
-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-28  1:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25  7:12 [PATCH net-next 0/3] Introduce and use netif_xmit_timeout_ms() helper Tariq Toukan
2025-11-25  7:12 ` [PATCH net-next 1/3] net: Introduce netif_xmit_time_out_duration() helper Tariq Toukan
2025-11-27 10:53   ` Paolo Abeni
2025-11-27 13:53     ` Shahar Shitrit
2025-11-28  1:34   ` Jakub Kicinski
2025-11-25  7:12 ` [PATCH net-next 2/3] net: hns3: Use netif_xmit_timeout_ms() helper Tariq Toukan
2025-11-25  7:12 ` [PATCH net-next 3/3] net/mlx5e: Refine TX timeout handling to skip non-timed-out SQ Tariq Toukan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).