X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fmac-learning.h;h=34dc12c478a67cee4f6fb37c27b875be03c7a3e9;hb=003ce655b7116d18c86a74c50391e54990346931;hp=ba7f73421f6d2a84b2d28a19d7d3cfd4404cacde;hpb=30618594b6c68497b56443de81a7f19e57e3e898;p=sliver-openvswitch.git diff --git a/lib/mac-learning.h b/lib/mac-learning.h index ba7f73421..34dc12c47 100644 --- a/lib/mac-learning.h +++ b/lib/mac-learning.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,7 +80,7 @@ struct mac_learning { unsigned long *flood_vlans; /* Bitmap of learning disabled VLANs. */ unsigned int idle_time; /* Max age before deleting an entry. */ size_t max_entries; /* Max number of learned MACs. */ - atomic_int ref_cnt; + struct ovs_refcount ref_cnt; struct ovs_rwlock rwlock; bool need_revalidate; };