summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif-xlate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index fda802e83..d53d1d5d8 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -7665,6 +7665,10 @@ xlate_wc_finish(struct xlate_ctx *ctx)
ctx->wc->masks.vlans[i].tci = 0;
}
}
+ /* Clear tunnel wc bits if original packet is non-tunnel. */
+ if (!flow_tnl_dst_is_set(&ctx->xin->upcall_flow->tunnel)) {
+ memset(&ctx->wc->masks.tunnel, 0, sizeof ctx->wc->masks.tunnel);
+ }
}
/* Translates the flow, actions, or rule in 'xin' into datapath actions in