Re: [ovs-dev] [PATCH v2] lib/pvector: Non-intrusive RCU priority vector.

2014-06-26 Thread Jarno Rajahalme
Solid suggestions as always :-) Pushed to master with the changes, Jarno On Jun 25, 2014, at 11:33 AM, Ben Pfaff wrote: > On Wed, Jun 25, 2014 at 04:15:54AM -0700, Jarno Rajahalme wrote: >> Factor out the priority vector code from the classifier. >> >> Making the classifier use RCU instead o

Re: [ovs-dev] [PATCH v2] lib/pvector: Non-intrusive RCU priority vector.

2014-06-25 Thread Ben Pfaff
On Wed, Jun 25, 2014 at 04:15:54AM -0700, Jarno Rajahalme wrote: > Factor out the priority vector code from the classifier. > > Making the classifier use RCU instead of locking requires parallel > access to the priority vector, pointing to subtables in descending > priority order. When a new subt

[ovs-dev] [PATCH v2] lib/pvector: Non-intrusive RCU priority vector.

2014-06-25 Thread Jarno Rajahalme
Factor out the priority vector code from the classifier. Making the classifier use RCU instead of locking requires parallel access to the priority vector, pointing to subtables in descending priority order. When a new subtable is added, a new copy of the priority vector is allocated, while the cu