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

2014-11-11 Thread Pravin Shelar
On Tue, Nov 11, 2014 at 7:58 AM, Ben Pfaff 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: Pravi

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

2014-11-11 Thread Ben Pfaff
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 Would you mind using ovsthread_once (or pthr

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

2014-11-11 Thread Thomas Graf
On 11/10/14 at 12:45pm, 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 Acked-by: Thomas Graf ___

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

2014-11-10 Thread Pravin B Shelar
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 --- ofproto/ofproto-dpif.c |1 + ofproto/tunnel.c | 35 --- ofproto/tunnel.