Hi Nithin,

Thanks for your review. I will split this patch into two patch series.

Sorin

-----Original Message-----
From: Nithin Raju [mailto:nit...@vmware.com] 
Sent: Tuesday, 18 November, 2014 08:59
To: Sorin Vinturis
Cc: dev@openvswitch.org
Subject: Re: [ovs-dev] [PATCH] datapath-windows: BSOD for a transactional NL 
cmd w/o dump state

hi Sorin,

_FlowNlGetCmdHandler() is used for a Flow command sent down as a transaction as 
shown in the following code:

NTSTATUS                                                         
OvsFlowNlGetCmdHandler(POVS_USER_PARAMS_CONTEXT usrParamsCtx,    
                       UINT32 *replyLen)                         
{                                                                
[...]
    if (usrParamsCtx->devOp == OVS_TRANSACTION_DEV_OP) {         
        status = _FlowNlGetCmdHandler(usrParamsCtx, replyLen);   

It is bug that _FlowNlGetCmdHandler() is accessing 'instance->dumpState.ovsMsg' 
even though it is handler for OVS_TRANSACTION_DEV_OP. The fix in 
'_FlowNlGetCmdHandler()' should merely be:

- POVS_MESSAGE msgIn = instance->dumpState.ovsMsg;
+ POVS_MESSAGE msgIn = (POVS_MESSAGE)usrParamsCtx->inputBuffer;

That should fix the issue.

> Also modified OvsFlowNlGetCmdHandler() to handle transactional errors.

As a practice, we don't combine patches that fix difference things into one 
patch. In this case, you can split the bigger patch into 2 patches, and send 
them out as a series.

thanks,
-- Nithin
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to