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>
Thu, 2 May 2013 19:37:28 +0000 (12:37 -0700)
commit743cea45434a5a3c6560a73f29632c6352874c61
tree837b1e5f1ae10a9db170ebd9a5ac01f65825f4ab
parent17ec1d04252bad77e816ecddd09bbb6db30b3575
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
tests/ofproto-dpif.at