[ovs-dev] [PATCH v3 1/3] tunnel: Convert rwlock to fat-rwlock.

Pravin Shelar pshelar at nicira.com
Tue Nov 11 16:43:51 UTC 2014


On Tue, Nov 11, 2014 at 7:58 AM, Ben Pfaff <blp at nicira.com> wrote:
> On Mon, Nov 10, 2014 at 12:45:57PM -0800, Pravin B Shelar wrote:
>> Tunnel lookup is done in slow path but DPDK tunneling
>> slow path is called in PMD context. Therefore it is
>> better to convert rwlock to fat rwlock.
>>
>> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
>
> Would you mind using ovsthread_once (or pthread_once()) instead of a
> local static?  I understand that ofprotos are constructed serially but I
> still think that it's better to "do it right" here.  There would be
> basically no runtime cost in this case.

ok, I will update the patch.



More information about the dev mailing list