]> git.proxmox.com Git - mirror_ovs.git/commit - tests/ovs-ofctl.at
ofp-actions: Add "ingress" and "egress" options to "sample" action.
authorBen Pfaff <blp@ovn.org>
Thu, 24 Nov 2016 07:15:19 +0000 (23:15 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 30 Nov 2016 16:46:53 +0000 (08:46 -0800)
commit4930ea5620375c28bbdd1c85f8f48b9431c73abe
treed4f07e580ef2ab05d6030f8e7e4ed32d8c6f2aa5
parent65d8810c5521a18399b726f5e62ab35b8b063614
ofp-actions: Add "ingress" and "egress" options to "sample" action.

Before Open vSwitch 2.5.90, IPFIX reports from Open vSwitch didn't include
whether the packet was ingressing or egressing the switch.  Starting in
OVS 2.5.90, this information was available but only accurate if the action
included a port number that indicated a tunnel.  Conflating these two does
not always make sense (not every packet involves a tunnel!), so this patch
makes it possible for the sample action to simply say whether it's for
ingress or egress.

This is difficult to test, since the "tests" directory of OVS does not have
a proper IPFIX listener.  This passes those tests, plus a couple that just
verify that the actions are properly parsed and formatted.  Benli did test
it end-to-end in a VMware use case.

Requested-by: Benli Ye <daniely@vmware.com>
Tested-by: Benli Ye <daniely@vmware.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Simon Horman <simon.horman@netronome.com>
NEWS
include/openvswitch/ofp-actions.h
lib/odp-util.c
lib/odp-util.h
lib/ofp-actions.c
ofproto/ofproto-dpif-ipfix.c
ofproto/ofproto-dpif-xlate.c
tests/odp.at
tests/ofp-actions.at
tests/ovs-ofctl.at
utilities/ovs-ofctl.8.in