[ovs-dev] [PATCH 1/6] ofp-actions: Add the NXAST_SAMPLE vendor action

Romain Lenglet rlenglet at vmware.com
Sat Apr 20 17:55:49 UTC 2013


Hi Ben,
Would you like me to send you a squashed patch,
or will you squash the patches yourself?
Thanks,
--
Romain Lenglet

----- Original Message -----
> From: "Ben Pfaff" <blp at nicira.com>
> To: "Romain Lenglet" <rlenglet at vmware.com>
> Cc: dev at openvswitch.org, jesse at nicira.com
> Sent: Thursday, April 18, 2013 10:23:25 AM
> Subject: Re: [PATCH 1/6] ofp-actions: Add the NXAST_SAMPLE vendor action
> 
> I snipped most of your responses, which look fine to me.  Thanks.
> 
> I see one place worth a more detailed response.
> 
> On Wed, Apr 17, 2013 at 07:00:17PM -0700, Romain Lenglet wrote:
> > I wasn't sure about the policy regarding asserts, since there aren't
> > many in the code.
> 
> I have mixed feelings about asserts.  You can easily have too many of
> them, some asserts do not have much value (such as those that assert
> that a pointer is nonnull only a few lines above dereferencing that
> pointer), and some asserts make code much slower.  Also, the
> consequences of failing an assertion (crashing your program) can be
> higher than the consequences of plowing ahead (sometimes not crashing).
> 
> We don't ever compile without assertions, so assertions have to be
> cheap.
> 
> These asserts seem OK to me though.
> 



More information about the dev mailing list