{
NDIS_STATUS status = STATUS_SUCCESS;
POVS_SWITCH_CONTEXT switchContext = ovsFwdCtx->switchContext;
+ PCWSTR dropReason;
/*
* Handle the case where the some of the destination ports are tunneled
if (newNbl == NULL) {
status = NDIS_STATUS_RESOURCES;
ovsActionStats.noCopiedNbl++;
+ dropReason = L"Dropped due to failure to create NBL copy.";
goto dropit;
}
}
if (status != NDIS_STATUS_SUCCESS) {
OvsCompleteNBL(ovsFwdCtx->switchContext, newNbl, TRUE);
ovsActionStats.cannotGrowDest++;
+ dropReason = L"Dropped due to failure to update destinations.";
goto dropit;
}
ovsFwdCtx->completionList,
&ovsFwdCtx->layers, FALSE);
if (status != NDIS_STATUS_SUCCESS) {
- OvsCompleteNBLForwardingCtx(ovsFwdCtx,
- L"Dropped due to resouces");
+ dropReason = L"Dropped due to resouces.";
goto dropit;
}
}
dropit:
if (status != NDIS_STATUS_SUCCESS) {
- OvsCompleteNBLForwardingCtx(ovsFwdCtx, L"Dropped due to XXX");
+ OvsCompleteNBLForwardingCtx(ovsFwdCtx, dropReason);
}
return status;