datapath-windows: Correctly complete the original NBL with multiple NBs
authorSorin Vinturis <svinturis@cloudbasesolutions.com>
Thu, 11 Jun 2015 12:52:49 +0000 (12:52 +0000)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Jun 2015 17:45:05 +0000 (10:45 -0700)
OvsCreateNewNBLsFromMultipleNBs function failed to correctly complete the
original NBL with multiple NBs after creating multiple NBLs with single
NB.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/PacketIO.c

index 7b2c0c8..d41335b 100644 (file)
@@ -524,11 +524,12 @@ OvsCreateNewNBLsFromMultipleNBs(POVS_SWITCH_CONTEXT switchContext,
         }
         lastNbl->Next = *nextNbl;
         *nextNbl = newNbls->Next;
-        *curNbl = newNbls;
-        (*curNbl)->Next = NULL;
 
         OvsCompleteNBL(switchContext, *curNbl, TRUE);
 
+        *curNbl = newNbls;
+        (*curNbl)->Next = NULL;
+
         error = FALSE;
     } while (error);