Commit 91b82cf8 authored by Praveen Kumar Kannoju's avatar Praveen Kumar Kannoju Committed by Greg Kroah-Hartman
Browse files

net/sched: adjust device watchdog timer to detect stopped queue at right time



[ Upstream commit 33fb988b ]

Applications are sensitive to long network latency, particularly
heartbeat monitoring ones. Longer the tx timeout recovery higher the
risk with such applications on a production machines. This patch
remedies, yet honoring device set tx timeout.

Modify watchdog next timeout to be shorter than the device specified.
Compute the next timeout be equal to device watchdog timeout less the
how long ago queue stop had been done. At next watchdog timeout tx
timeout handler is called into if still in stopped state. Either called
or not called, restore the watchdog timeout back to device specified.

Signed-off-by: default avatarPraveen Kumar Kannoju <praveen.kannoju@oracle.com>
Link: https://lore.kernel.org/r/20240508133617.4424-1-praveen.kannoju@oracle.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: 95ecba62 ("net: fix races in netdev_tx_sent_queue()/dev_watchdog()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 628e82e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment