Before the receiver object in the frontend can be shut down, the Windows
network stack must return all buffers passed up. The code therefore
waits for this to happen during the VIF Disable method. Add logging to
note that the wait is occuring as it can take a significant amount of time.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Loaned = Receiver->Loaned;
- while (Receiver->Returned != Loaned) {
- Trace("waiting for packets\n");
+ if (Receiver->Returned != Loaned) {
+ PXENVIF_FRONTEND Frontend;
+
+ Frontend = Receiver->Frontend;
+ Info("%s\n", FrontendGetPath(Frontend));
+ }
+
+ while (Receiver->Returned != Loaned) {
(VOID) KeWaitForSingleObject(&Receiver->Event,
Executive,
KernelMode,