]> git.proxmox.com Git - ovs.git/commitdiff
datapath-windows: Remove unnecessary call to OvsInitForwardingCtx
authorAnand Kumar <kumaranand@vmware.com>
Wed, 30 Aug 2017 23:03:57 +0000 (16:03 -0700)
committerAlin Gabriel Serdean <aserdean@ovn.org>
Mon, 4 Sep 2017 13:52:33 +0000 (16:52 +0300)
Only curNbl in the forwarding context needs to be updated with
fragmented NBL.

Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Shashank Ram <rams@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
datapath-windows/ovsext/Actions.c

index 684b3166f074e03ed6d26df6cc8419c7c1c28d8f..41d1c7b1bb8571e024502db375d34f291742646a 100644 (file)
@@ -160,14 +160,7 @@ OvsDoFragmentNbl(OvsForwardingContext *ovsFwdCtx, UINT16 mru)
 
    if (fragNbl != NULL) {
         OvsCompleteNBL(ovsFwdCtx->switchContext, ovsFwdCtx->curNbl, TRUE);
-        OvsInitForwardingCtx(ovsFwdCtx,
-                            ovsFwdCtx->switchContext,
-                             fragNbl,
-                             ovsFwdCtx->srcVportNo,
-                             ovsFwdCtx->sendFlags,
-                             NET_BUFFER_LIST_SWITCH_FORWARDING_DETAIL(fragNbl),
-                             ovsFwdCtx->completionList,
-                             &ovsFwdCtx->layers, FALSE);
+        ovsFwdCtx->curNbl = fragNbl;
     } else {
         OVS_LOG_INFO("Fragment NBL failed for MRU = %u", mru);
     }