ovs-atomic: Introduce a new 'struct ovs_refcount'.
authorBen Pfaff <blp@nicira.com>
Sat, 28 Dec 2013 03:39:24 +0000 (19:39 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Jan 2014 01:13:30 +0000 (17:13 -0800)
commit37bec3d330ed7f72b6a867728c538b49e5727dc7
treebbb899adc71b41c32853a1b04ae435832b3d2607
parentc5f81b20da9bbf0ac406a88718597a4e84729a98
ovs-atomic: Introduce a new 'struct ovs_refcount'.

This is a thin wrapper around an atomic_uint.  It is useful anyhow because
each ovs_refcount_ref() or ovs_refcount_unref() call saves a few lines of
code.

This commit also changes all the potential direct users over to use the new
data structure.

Signed-off-by: Ben Pfaff <blp@nicira.com>
13 files changed:
lib/bfd.c
lib/cfm.c
lib/lacp.c
lib/mac-learning.c
lib/mac-learning.h
lib/ovs-atomic.h
lib/stp.c
ofproto/bond.c
ofproto/netflow.c
ofproto/ofproto-dpif-ipfix.c
ofproto/ofproto-dpif-sflow.c
ofproto/ofproto-provider.h
ofproto/ofproto.c