[ovs-git] Open vSwitch: sFlow: Genericize/simplify kernel sFlow implementation (master)

dev at openvswitch.org dev at openvswitch.org
Wed Sep 28 17:50:19 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  6ff686f2bc2afcfb0a9ad9793d834979dc9870d6 (commit)
      from  89ac6b1f19fa75c056420821b49035346c65024f (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 6ff686f2bc2afcfb0a9ad9793d834979dc9870d6
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6ff686f2bc2afcfb0a9ad9793d834979dc9870d6
Author: Pravin Shelar <pshelar at nicira.com>
		
sFlow: Genericize/simplify kernel sFlow implementation
		
Following patch adds sampling action which takes probability and set
of actions as arguments. When probability is hit, actions are executed for
given packet.
USERSPACE action's userdata (u64) is used to store struct
user_action_cookie as cookie. CONTROLLER action is fixed accordingly.

Now we can remove sFlow code from kernel and implement sFlow generically
as SAMPLE action. sFlow is defined as SAMPLE Action with probability (sFlow
sampling rate) and USERSPACE action as argument. USERSPACE action's data
is used as cookie. sFlow uses this cookie to store output-port, number of
output ports and vlan-id. sample-pool is calculated by using vport
stats.

Signed-off-by: Pravin Shelar <pshelar at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 datapath/actions.c                      |   82 ++++++------
 datapath/datapath.c                     |   79 ++++++----
 datapath/datapath.h                     |   19 +--
 datapath/vport.c                        |    1 -
 datapath/vport.h                        |    3 -
 include/openvswitch/datapath-protocol.h |   36 +++--
 lib/dpif-linux.c                        |   56 +-------
 lib/dpif-netdev.c                       |    2 -
 lib/dpif-provider.h                     |   19 ---
 lib/dpif.c                              |   39 +-----
 lib/dpif.h                              |    8 -
 lib/odp-util.c                          |   59 ++++++++-
 lib/odp-util.h                          |   18 +++
 ofproto/ofproto-dpif-sflow.c            |   91 ++++++------
 ofproto/ofproto-dpif-sflow.h            |   11 ++-
 ofproto/ofproto-dpif.c                  |  239 ++++++++++++++++++++++++-------
 16 files changed, 437 insertions(+), 325 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list