diff options
author | Neil Mckee <neil.mckee@inmon.com> | 2013-04-30 22:38:53 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-05-03 13:13:28 -0700 |
commit | df5256dd98fe880a7773eb485ac441188c58b9a3 (patch) | |
tree | cb0f8db5c096213dabb9debc4f8f7c68f1923e0a /lib | |
parent | 8ac6e0e15dafd1b41001fdc52ea00cc42906d5a9 (diff) |
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')
-rw-r--r-- | lib/sflow.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sflow.h b/lib/sflow.h index 8ea96937..0d1f2b9c 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 |