Re: [ovs-dev] [PATCH v2] datapath-windows: Removed all duplicate checking of gOvsSwitchContext

2014-11-17 Thread Sorin Vinturis
: Re: [ovs-dev] [PATCH v2] datapath-windows: Removed all duplicate checking of gOvsSwitchContext On Fri, Nov 14, 2014 at 06:58:47PM +, Sorin Vinturis wrote: Right now the gOvsSwitchContext pointer is checked against NULL in a lot of places of the OVS extension code. This check should be done

[ovs-dev] [PATCH v2] datapath-windows: Removed all duplicate checking of gOvsSwitchContext

2014-11-14 Thread Sorin Vinturis
Right now the gOvsSwitchContext pointer is checked against NULL in a lot of places of the OVS extension code. This check should be done only once to avoid wasteful checks. Thus I have added the check in the dispatch routine, before doing any processing, and removed all other checks from the rest

Re: [ovs-dev] [PATCH v2] datapath-windows: Removed all duplicate checking of gOvsSwitchContext

2014-11-14 Thread Ben Pfaff
On Fri, Nov 14, 2014 at 06:58:47PM +, Sorin Vinturis wrote: Right now the gOvsSwitchContext pointer is checked against NULL in a lot of places of the OVS extension code. This check should be done only once to avoid wasteful checks. Thus I have added the check in the dispatch routine,