id-pool: Refactor id_pool_alloc_id to allow any 32 bit value to be an id
authorSimon Horman <simon.horman@netronome.com>
Mon, 10 Nov 2014 04:47:49 +0000 (13:47 +0900)
committerBen Pfaff <blp@nicira.com>
Mon, 10 Nov 2014 16:39:57 +0000 (08:39 -0800)
commit27c247496fc15012b3186059639bf6dba1d1f706
tree541751e520cc5d7b27e27bafe277991cf9d80882
parentc3bd4bfc7120a16d3e3604985e9c607705ef594d
id-pool: Refactor id_pool_alloc_id to allow any 32 bit value to be an id

id_pool_alloc_id() was created by breaking out the recirculation
allocation code. As it is now a library call it makes sense to remove
the restriction that id 0 is reserved.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/id-pool.c
lib/id-pool.h
ofproto/ofproto-dpif-rid.c