Change sFlow model to reflect per-bridge sampling
authorNeil Mckee <neil.mckee@inmon.com>
Wed, 1 May 2013 05:38:53 +0000 (22:38 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 3 May 2013 20:13:28 +0000 (13:13 -0700)
commitdf5256dd98fe880a7773eb485ac441188c58b9a3
treecb0f8db5c096213dabb9debc4f8f7c68f1923e0a
parent8ac6e0e15dafd1b41001fdc52ea00cc42906d5a9
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>
lib/sflow.h
ofproto/ofproto-dpif-sflow.c
ofproto/ofproto-dpif.c
ofproto/tunnel.c