]> xenbits.xensource.com Git - people/pauldu/xenvif.git/commit
Make sure the NICS unplug count does not run away
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 28 Jul 2016 09:04:44 +0000 (10:04 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 28 Jul 2016 09:40:03 +0000 (10:40 +0100)
commitc3f2b64ad5fe03428c9a7d88e280db51c5155363
tree5daf549ac37e40f281feec90f9ba9b3528c2ddec
parentf8bbc9e5acb7b77c3776935dc7c77c6d51d467fb
Make sure the NICS unplug count does not run away

In a tight loop of network attach/detach it's possible for a mismatch in
the number of unplug requests and revocations to occur, leading to a
run-away unplug count.

This patch adjusts the location of the requests and revocations to make
sure this does not happen.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/pdo.c