summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorAdrian Moreno <amorenoz@redhat.com>2022-09-27 17:32:55 +0200
committerIlya Maximets <i.maximets@ovn.org>2022-10-25 23:19:47 +0200
commit77f739914d406665dc17733a6cdd4fff9a80f7a3 (patch)
tree325bfbd255e619ee1ee426138493929820cc911f /ofproto
parent76ab364ea8facd73366411916d7d0f5ff611daed (diff)
downloadopenvswitch-77f739914d406665dc17733a6cdd4fff9a80f7a3.tar.gz
ofproto-dpif-xlate: Allow sample when no in_port.
OVN can (and indeed does) set in_port to OFPP_NONE during the pipeline evaluation. If a sample action follows, it will be incorrectly skipped. Per-flow sampling version of: f0a9000ca ofproto: Fix ipfix not always sampling on egress. Signed-off-by: Adrian Moreno <amorenoz@redhat.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif-xlate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 81deb72d9..5d2af93fa 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -5699,7 +5699,7 @@ xlate_sample_action(struct xlate_ctx *ctx,
struct dpif_ipfix *ipfix = ctx->xbridge->ipfix;
bool emit_set_tunnel = false;
- if (!ipfix || ctx->xin->flow.in_port.ofp_port == OFPP_NONE) {
+ if (!ipfix) {
return;
}