[ovs-dev] [RFC 03/10] ovs-rcu: Allow static pointer non-NULL initialization

Daniele Di Proietto ddiproietto at vmware.com
Fri Oct 10 21:01:01 UTC 2014



On 10/10/14, 8:53 AM, "Ben Pfaff" <blp at nicira.com> wrote:

>On Wed, Oct 08, 2014 at 02:09:49PM -0700, Daniele Di Proietto wrote:
>> OVSRCU_TYPE_INITIALIZER now accepts a parameter (the initial value of
>>the RCU
>> protected pointer).
>> 
>> Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
>
>Good idea.
>
>It looks like the main value in OVSRCU_TYPE_INIT_NULL is that the name
>of OVSRCU_TYPE_INITIALIZER is too long.  I'd rather get rid of
>OVSRCU_TYPE_INIT_NULL and rename OVSRCU_TYPE_INITIALIZER to
>OVSRCU_TYPE_INIT, then use OVSRCU_TYPE_INIT(NULL) to initialize to null.

It seems better, done

Thanks




More information about the dev mailing list