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

Ben Pfaff blp at nicira.com
Tue Nov 11 15:58:22 UTC 2014


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.



More information about the dev mailing list