summaryrefslogtreecommitdiff
path: root/lib/sflow.h
diff options
context:
space:
mode:
authorNeil Mckee <neil.mckee@inmon.com>2013-04-30 22:38:53 -0700
committerBen Pfaff <blp@nicira.com>2013-05-02 12:37:28 -0700
commit743cea45434a5a3c6560a73f29632c6352874c61 (patch)
tree837b1e5f1ae10a9db170ebd9a5ac01f65825f4ab /lib/sflow.h
parent17ec1d04252bad77e816ecddd09bbb6db30b3575 (diff)
downloadopenvswitch-743cea45434a5a3c6560a73f29632c6352874c61.tar.gz
Change sFlow model to reflect per-bridge sampling
Until now, we were presenting a separate sFlow data-source (sampler) for each ifIndex-interface. This caused problems with samples that did not easily map to an ifIndex being aliased together and breaking the sFlow containment rules. This patch changes the model to present a single sFlow data-source for each bridge. Now we can still make all reasonable effort to map packet samples to ingress/egress ifIndex numbers, knowing that the fallback to "unknown" does not break the sFlow model. Note that interface-counter-polling is still handled the same way as before, with sFlow counter-polling data only being exported for ifIndex-interfaces. Signed-off-by: Neil Mckee <neil.mckee@inmon.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/sflow.h')
-rw-r--r--lib/sflow.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sflow.h b/lib/sflow.h
index 8ea96937f..0d1f2b9cd 100644
--- a/lib/sflow.h
+++ b/lib/sflow.h
@@ -8,6 +8,13 @@
#ifndef SFLOW_H
#define SFLOW_H 1
+typedef enum {
+ SFL_DSCLASS_IFINDEX = 0,
+ SFL_DSCLASS_VLAN = 1,
+ SFL_DSCLASS_PHYSICAL_ENTITY = 2,
+ SFL_DSCLASS_LOGICAL_ENTITY = 3
+} SFL_DSCLASS;
+
enum SFLAddress_type {
SFLADDRESSTYPE_IP_V4 = 1,
SFLADDRESSTYPE_IP_V6 = 2