netdev: Fully handle netdev lifecycle through refcounting.
authorJesse Gross <jesse@nicira.com>
Tue, 12 Jan 2010 21:01:43 +0000 (16:01 -0500)
committerJesse Gross <jesse@nicira.com>
Fri, 15 Jan 2010 16:34:34 +0000 (11:34 -0500)
commit149f577a25508779b756515be1f1bdcefa3710fa
treee88ab9ea3f6667839fa59c23a7b0cf381eda8f33
parentb4182c7f2d25110c2edaf96d33dd081257fa253b
netdev: Fully handle netdev lifecycle through refcounting.

This builds on earlier work that implemented netdev object refcounting.
However, rather than requiring explicit create and destroy calls,
these operations are now performed automatically based on the referenece
count.  This is important because in certain situations it is not
possible to know whether a netdev has already been created.  A
workaround existed (which looked fairly similar to this paradigm) but
introduced it's own issues.  This simplifies and unifies the API.
12 files changed:
lib/dhcp-client.c
lib/dpif-netdev.c
lib/netdev-linux.c
lib/netdev-provider.h
lib/netdev.c
lib/netdev.h
ofproto/in-band.c
ofproto/ofproto.c
utilities/ovs-discover.c
utilities/ovs-dpctl.c
vswitchd/bridge.c
vswitchd/ovs-brcompatd.c