[ovs-git] Open vSwitch: netdev-vport: Use vport set_stats instead of internal dev. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Jun 10 22:00:11 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, master has been updated
       via  f4b6076acab233cfe02e7eaefdeafbb69dfae556 (commit)
       via  7fbef77a30dc415e41b9803b5443ce4675149b19 (commit)
       via  4ea115b63fad4c6bd46c304fa00403a32a032d31 (commit)
       via  b4d76c80a078dcf641f36aa3b3b50a5667a27e16 (commit)
       via  780e620781c5237ab6c26d5edbc7edb5b4953c70 (commit)
       via  5953c70e61897996e8b05fadea988b3289e133de (commit)
       via  61e89cd6d688b8ea2368a815dbe3516d731e77f0 (commit)
      from  5535f0bdf71050fdec276628f7dfc8a860dc99da (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 f4b6076acab233cfe02e7eaefdeafbb69dfae556
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f4b6076acab233cfe02e7eaefdeafbb69dfae556
Author: Jesse Gross <jesse at nicira.com>
		
netdev-vport: Use vport set_stats instead of internal dev.
		
In certain cases we require the ability to provide stats that are
added to the values collected by the kernel (currently only used
by bond fake devices).  Internal devices previously implemented
this directly but now that their stats are now handled by the vport
layer the functionality has been moved there.  This removes the
userspace code to set the stats and replaces it with a mechanism
to access the equivalent functionality in the vport layer.


commit 7fbef77a30dc415e41b9803b5443ce4675149b19
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=7fbef77a30dc415e41b9803b5443ce4675149b19
Author: Jesse Gross <jesse at nicira.com>
		
netdev-linux: Add capability to get stats from vport layer.
		
The vport layer has the ability to track stats using 64-bit counters,
even if the kernel is only 32-bit.  This first attempts to collect
stats from these counters if they are available and otherwise falls
back to the normal Linux interfaces.


commit 4ea115b63fad4c6bd46c304fa00403a32a032d31
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4ea115b63fad4c6bd46c304fa00403a32a032d31
Author: Jesse Gross <jesse at nicira.com>
		
vport-internal: Convert internal devices to vport stats.
		
Internal devices currently keep track of stats themselves.  However,
we now have stats tracking in the vport layer, so convert to use
that instead to avoid code duplication and take advantage of
additional features such as 64-bit counters.


commit b4d76c80a078dcf641f36aa3b3b50a5667a27e16
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b4d76c80a078dcf641f36aa3b3b50a5667a27e16
Author: Jesse Gross <jesse at nicira.com>
		
vport-netdev: Use vport stats layer on 32-bit machines.
		
Linux devices store stats in counters the size of a machine word,
which are rapidly overflowed on a 32-bit machine.  In this
situation we now use the vport stats layer, which always uses 64-
bit stats.  On 64-bit machines we continue to use the normal
Linux stats to avoid the extra overhead of counting twice.


commit 780e620781c5237ab6c26d5edbc7edb5b4953c70
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=780e620781c5237ab6c26d5edbc7edb5b4953c70
Author: Jesse Gross <jesse at nicira.com>
		
vport: Allow offsets to be set for stats.
		
Adds a method to set a group of stats to be added to the values
gathered normally.  This is needed for the fake bond device to
show the stats of its underlying slaves.  Also enables devices
that use the generic stats layer to define a get_stats() function
to provide additional error counts.


commit 5953c70e61897996e8b05fadea988b3289e133de
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5953c70e61897996e8b05fadea988b3289e133de
Author: Jesse Gross <jesse at nicira.com>
		
vport: Move 'extern' declarations of vports to header.
		
Since vport implementations have no header files they needed to be
declared as extern before being used.  They are currently declared
in vport.c but this isn't safe because the compiler will silently
accept it if the type is incorrect.  This moves those declarations
into vport.h, which is included by all implementations and will
cause errors about conflicting types if there is a mismatch.


commit 61e89cd6d688b8ea2368a815dbe3516d731e77f0
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=61e89cd6d688b8ea2368a815dbe3516d731e77f0
Author: Jesse Gross <jesse at nicira.com>
		
vport: Rename userspace functions.
		
The vport library can be accessed from both userspace and the
kernel using different sets of functions.  These functions were
named similarly, so add _user to the userspace variants to
distinguish them.


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

Summary of changes:
 datapath/datapath.c                     |   31 ++--
 datapath/vport-gre.c                    |    2 -
 datapath/vport-internal_dev.c           |  119 ++++---------
 datapath/vport-netdev.c                 |   16 ++-
 datapath/vport-patch.c                  |    2 -
 datapath/vport.c                        |  297 +++++++++++++++++++++----------
 datapath/vport.h                        |   60 ++++---
 include/openvswitch/automake.mk         |    1 -
 include/openvswitch/datapath-protocol.h |    1 +
 include/openvswitch/internal_dev.h      |   66 -------
 lib/netdev-gre.c                        |    2 +-
 lib/netdev-linux.c                      |   97 ++++------
 lib/netdev-patch.c                      |    2 +-
 lib/netdev-vport.c                      |   34 ++++
 lib/netdev-vport.h                      |    1 +
 vswitchd/bridge.c                       |   17 ++-
 16 files changed, 391 insertions(+), 357 deletions(-)
 delete mode 100644 include/openvswitch/internal_dev.h


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list