Skip to content

Commit

Permalink
datapath-windows: Remove unnecessary call to OvsInitForwardingCtx
Browse files Browse the repository at this point in the history
Only curNbl in the forwarding context needs to be updated with
fragmented NBL.

Signed-off-by: Anand Kumar <[email protected]>
Acked-by: Shashank Ram <[email protected]>
Acked-by: Sairam Venugopal <[email protected]>
Acked-by: Alin Gabriel Serdean <[email protected]>
Signed-off-by: Alin Gabriel Serdean <[email protected]>
  • Loading branch information
Anandkumar26 authored and aserdean committed Sep 4, 2017
1 parent 44820d2 commit 54f61dd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions datapath-windows/ovsext/Actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 54f61dd

Please sign in to comment.