]> xenbits.xensource.com Git - people/pauldu/xenvif.git/commitdiff
Log a message to note that when a receiver is waiting for packets
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 1 Apr 2015 14:32:54 +0000 (15:32 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 1 Apr 2015 14:32:54 +0000 (15:32 +0100)
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>
src/xenvif/receiver.c

index e414fba3a2b60d125c350593e6b18ac48a84e371..20ce0de43b9fcc35e0b8f6030bb7c6775e5caa75 100644 (file)
@@ -3271,9 +3271,15 @@ ReceiverWaitForPackets(
 
     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,