]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commit
Improve transmitter disable.
authorMartin Harvey <Martin.Harvey@citrix.com>
Wed, 28 Jul 2021 14:02:43 +0000 (15:02 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 5 Aug 2021 18:23:16 +0000 (19:23 +0100)
commit93e1411d814287f2cc5581b18d625f87ddf238c0
tree50ef09c2c6974552b1eafc58c9fca55be0e75b6d
parentbd4ac4d558225b797245163fcf47746182650a22
Improve transmitter disable.

In some cases, the backend may stop processing Tx ring
requests in a timely manner. If this happens at the same time as ring
disable, then the Tx code could spin forever at dispatch IRQL.

This patch introduces a hard limit on how long the code will spin,
allowing a device disable or power transition to complete, albeit
at the cost of Tx requests being dropped or the ring being in
an indeterminate state. This has normally been seen at guest shutdown
where final ring state is of little consequence.

Signed-off-by: Martin Harvey <martin.harvey@citrix.com>
src/xenvif/transmitter.c