[ovs-git] Open vSwitch: datapath: Use u64_stats_sync for datapath and vport stats. (master)

dev at openvswitch.org dev at openvswitch.org
Mon Nov 21 18:29:02 UTC 2011


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  821cb9fac77850ae3546ab38766a58ff5e75e8a8 (commit)
      from  6161d3fd928edf7016abae60f549a135a2f83f09 (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 821cb9fac77850ae3546ab38766a58ff5e75e8a8
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=821cb9fac77850ae3546ab38766a58ff5e75e8a8
Author: Jesse Gross <jesse at nicira.com>
		
datapath: Use u64_stats_sync for datapath and vport stats.
		
We currently use a seqcount to prevent reading partial 64-bit stats
on 32-bit CPUs.  u64_stats_sync uses the same logic but elides it on
64-bit and uniprocessor machines.  This improves performance (primarily
on non-x86 architectures) at the cost of not guaranteeing that packet
and byte counts were necessarily read together.

Suggested-by: Stephen Hemminger <shemminger at vyatta.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 datapath/datapath.c                                |   15 +-
 datapath/datapath.h                                |    4 +-
 datapath/linux/Modules.mk                          |    1 +
 .../linux/compat/include/linux/u64_stats_sync.h    |  147 ++++++++++++++++++++
 datapath/vport.c                                   |   14 +-
 datapath/vport.h                                   |    4 +-
 6 files changed, 166 insertions(+), 19 deletions(-)
 create mode 100644 datapath/linux/compat/include/linux/u64_stats_sync.h


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list