Re: [ovs-dev] [PATCH 4/5] lib/cmap: Add more hmap-like functionality.

2014-05-28 Thread Ben Pfaff
On Wed, May 28, 2014 at 04:48:41PM -0700, Jarno Rajahalme wrote: > > On May 28, 2014, at 4:14 PM, Jarno Rajahalme wrote: > > > > > On May 23, 2014, at 10:23 AM, Ben Pfaff wrote: > > > >> On Thu, May 22, 2014 at 05:37:41PM -0700, Jarno Rajahalme wrote: > >>> Add cmap_replace() and cmap_first()

Re: [ovs-dev] [PATCH 4/5] lib/cmap: Add more hmap-like functionality.

2014-05-28 Thread Jarno Rajahalme
On May 28, 2014, at 4:14 PM, Jarno Rajahalme wrote: > > On May 23, 2014, at 10:23 AM, Ben Pfaff wrote: > >> On Thu, May 22, 2014 at 05:37:41PM -0700, Jarno Rajahalme wrote: >>> Add cmap_replace() and cmap_first(), as well as CMAP_FOR_EACH_SAFE and >>> CMAP_FOR_EACH_CONTINUE to make porting ex

Re: [ovs-dev] [PATCH 4/5] lib/cmap: Add more hmap-like functionality.

2014-05-28 Thread Jarno Rajahalme
On May 23, 2014, at 10:23 AM, Ben Pfaff wrote: > On Thu, May 22, 2014 at 05:37:41PM -0700, Jarno Rajahalme wrote: >> Add cmap_replace() and cmap_first(), as well as CMAP_FOR_EACH_SAFE and >> CMAP_FOR_EACH_CONTINUE to make porting existing hmap using code a bit >> easier. >> >> CMAP_FOR_EACH_SAF

Re: [ovs-dev] [PATCH 4/5] lib/cmap: Add more hmap-like functionality.

2014-05-23 Thread Ben Pfaff
On Thu, May 22, 2014 at 05:37:41PM -0700, Jarno Rajahalme wrote: > Add cmap_replace() and cmap_first(), as well as CMAP_FOR_EACH_SAFE and > CMAP_FOR_EACH_CONTINUE to make porting existing hmap using code a bit > easier. > > CMAP_FOR_EACH_SAFE is useful in RCU postponed destructors, when it is > kn

[ovs-dev] [PATCH 4/5] lib/cmap: Add more hmap-like functionality.

2014-05-22 Thread Jarno Rajahalme
Add cmap_replace() and cmap_first(), as well as CMAP_FOR_EACH_SAFE and CMAP_FOR_EACH_CONTINUE to make porting existing hmap using code a bit easier. CMAP_FOR_EACH_SAFE is useful in RCU postponed destructors, when it is known that additional postponing is not needed. Signed-off-by: Jarno Rajahalme