[ovs-git] Open vSwitch: netdev-linux: Cleanup tap netdev. (next)

dev at openvswitch.org dev at openvswitch.org
Fri Jan 15 16:35:05 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, next has been updated
       via  5b7448ed80cb7fd42c760acbc38e03009fc0a4b2 (commit)
       via  0b0544d706d10516d3122fbcce8f1dc1dec6cb92 (commit)
       via  149f577a25508779b756515be1f1bdcefa3710fa (commit)
      from  b4182c7f2d25110c2edaf96d33dd081257fa253b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5b7448ed80cb7fd42c760acbc38e03009fc0a4b2
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5b7448ed80cb7fd42c760acbc38e03009fc0a4b2
Author: Jesse Gross <jesse at nicira.com>
		
netdev-linux: Cleanup tap netdev.
		
TAP devices need to be treated slightly differently from other other
devices because they cannot be opened multiple times.  Instead we
open them once and share the file descriptor.  This means that if
the netdev is opened multiple times one reader can drain the buffers
of another.  While this is a deviation from the normal convention,
it does not impact current or planned users.

In addition, this cleans up some confusion between the file
descriptor for tap devices versus other FD's.


commit 0b0544d706d10516d3122fbcce8f1dc1dec6cb92
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0b0544d706d10516d3122fbcce8f1dc1dec6cb92
Author: Jesse Gross <jesse at nicira.com>
		
gre: Add support for destroying GRE devices.
		
This allows GRE tunnel devices to be torn down on graceful exit
of vswitch and cleaned up on restart for non-graceful exits.


commit 149f577a25508779b756515be1f1bdcefa3710fa
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=149f577a25508779b756515be1f1bdcefa3710fa
Author: Jesse Gross <jesse at nicira.com>
		
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.


-----------------------------------------------------------------------

Summary of changes:
 datapath/linux-2.6/compat-2.6/ip_gre.c |   17 +
 lib/dhcp-client.c                      |   11 +-
 lib/dpif-netdev.c                      |   27 +-
 lib/netdev-linux.c                     |  670 ++++++++++++++++++--------------
 lib/netdev-provider.h                  |  123 +++---
 lib/netdev.c                           |  464 +++++++++++++----------
 lib/netdev.h                           |   21 +-
 ofproto/in-band.c                      |    8 +-
 ofproto/ofproto.c                      |   19 +-
 utilities/ovs-discover.c               |    4 +-
 utilities/ovs-dpctl.c                  |    4 +-
 vswitchd/bridge.c                      |   97 +++--
 vswitchd/ovs-brcompatd.c               |    4 +-
 13 files changed, 827 insertions(+), 642 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list