Skip to content
Snippets Groups Projects
Commit 33fb988b authored by Praveen Kumar Kannoju's avatar Praveen Kumar Kannoju Committed by Jakub Kicinski
Browse files

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


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>
parent 60e0f986
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment