Skip to content

Commit

Permalink
datapath-windows: Update OvsCompleteNbl argument to match definition
Browse files Browse the repository at this point in the history
Update the OvsCompleteNbl to take in a PVOID and explicitly cast to
POVS_SWITCH_CONTEXT. This is useful when finding declarations in Visual
Studio. The mismatch breaks this functionality.

Found by inspection.

Signed-off-by: Sairam Venugopal <[email protected]>
Acked-by: Shashank Ram <[email protected]>
Signed-off-by: Alin Gabriel Serdean <[email protected]>
  • Loading branch information
Sairam Venugopal authored and aserdean committed Oct 31, 2017
1 parent af2e40c commit 8ce087f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datapath-windows/ovsext/BufferMgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ OvsFullCopyToMultipleNBLs(PVOID ovsContext,
* --------------------------------------------------------------------------
*/
PNET_BUFFER_LIST
OvsCompleteNBL(POVS_SWITCH_CONTEXT context,
OvsCompleteNBL(PVOID switch_ctx,
PNET_BUFFER_LIST nbl,
BOOLEAN updateRef)
{
Expand All @@ -1615,6 +1615,7 @@ OvsCompleteNBL(POVS_SWITCH_CONTEXT context,
NDIS_STATUS status;
NDIS_HANDLE poolHandle;
LONG value;
POVS_SWITCH_CONTEXT context = (POVS_SWITCH_CONTEXT)switch_ctx;
POVS_NBL_POOL ovsPool = &context->ovsPool;
PNET_BUFFER nb;

Expand Down

0 comments on commit 8ce087f

Please sign in to comment.