Re: [ovs-dev] [PATCH v3 05/13] connmgr: Make connmgr_wants_packet_in_on_miss() lock-free.

2016-09-13 Thread Jarno Rajahalme
> On Sep 13, 2016, at 12:38 PM, Ben Pfaff wrote: > > On Mon, Sep 12, 2016 at 01:52:35PM -0700, Jarno Rajahalme wrote: >> Make connmgr_wants_packet_in_on_miss() use an atomic int instead of a >> list traversal taking the 'ofproto_mutex'. This allows >>

Re: [ovs-dev] [PATCH v3 05/13] connmgr: Make connmgr_wants_packet_in_on_miss() lock-free.

2016-09-13 Thread Ben Pfaff
On Mon, Sep 12, 2016 at 01:52:35PM -0700, Jarno Rajahalme wrote: > Make connmgr_wants_packet_in_on_miss() use an atomic int instead of a > list traversal taking the 'ofproto_mutex'. This allows > connmgr_wants_packet_in_on_miss() to be called also when > 'ofproto_mutex' is already held, and makes

[ovs-dev] [PATCH v3 05/13] connmgr: Make connmgr_wants_packet_in_on_miss() lock-free.

2016-09-12 Thread Jarno Rajahalme
Make connmgr_wants_packet_in_on_miss() use an atomic int instead of a list traversal taking the 'ofproto_mutex'. This allows connmgr_wants_packet_in_on_miss() to be called also when 'ofproto_mutex' is already held, and makes it faster, too. Remove unused ofproto_dpif_wants_packet_in_on_miss().