Couple of minor style comments on my end.

I'd prefer if xlate_init_new_xcfg() and set_new_cfg() are renamed to
something like xlate_txn_start() and xlate_txn_commit().  From the
callers perspecdtive we're creating a transaction with which we change
the configuration.  It's a bit more obvious what's going on.

We're implicitly enforcing that only one transaction is allowed at a
time.  Therefore, I'd like the transaction start function to assert
that new_xcfg is NULL.

There's a bunch of functions where the xlate_cfg is the last argument
which would be a bit more in keeping with the style if it was the
first argument.

Also there's a bunch of functions where we ovsrcu_get the xlate
config.  This isn't technically part of the coding style, but most of
the code puts variable definitions which are assignments first, and
usually in longest to shortest order.  I.E. that should be the first
variable assignment in the function.

Patch looks good to me.

Acked-by: Ethan Jackson <et...@nicira.com>


On Thu, May 22, 2014 at 7:03 PM, Alex Wang <al...@nicira.com> wrote:
> Hey Ben,
>
> Could you review it?  Should be all ready,
>
>
> Thanks,
> Alex Wang,
>
>
> On Tue, May 20, 2014 at 11:19 AM, Ben Pfaff <b...@nicira.com> wrote:
>>
>> On Tue, May 20, 2014 at 11:04 AM, Ryan Wilson 76511 <wr...@vmware.com>
>> wrote:
>> > Per Alex's request, I ran a 10K internal port creation test (using
>> > batches
>> > of 500 ports at a time via ovs-vsctl) on my 8GB memory machine. Again
>> > RCU
>> > was slightly faster:
>> >
>> > master: real 3m28.301s
>> > with RCU: real 3m21.489s
>>
>> OK, that's reassuring.  If O(n**2) behavior is going to show up, it's
>> going to be at higher scale, then, and so I won't worry about it for
>> now since scale always requires a little bit of extra work.
>> _______________________________________________
>> dev mailing list
>> dev@openvswitch.org
>> http://openvswitch.org/mailman/listinfo/dev
>
>
>
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to