[ovs-dev] [PATCH v4 1/3] xlate: Clear tunnel mask along with other fields while combine actions.
Sugesh Chandran
sugesh.chandran at intel.com
Wed Jul 19 13:46:01 UTC 2017
The tunnel mask in the translation state should be cleared along with other
context fields. It is necessary in 'apply_nested_clone_actions' as it will be
used to combine post tunnel output actions with tunnel push. This will assure
right openflow state while executing the translation.
Signed-off-by: Sugesh Chandran <sugesh.chandran at intel.com>
Signed-off-by: Zoltán Balogh <zoltan.balogh at ericsson.com>
Co-authored-by: Zoltán Balogh <zoltan.balogh at ericsson.com>
Acked-by: Joe Stringer <joe at ovn.org>
---
ofproto/ofproto-dpif-xlate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 9d81ee3..b9fd886 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -3296,6 +3296,7 @@ apply_nested_clone_actions(struct xlate_ctx *ctx, const struct xport *in_dev,
flow->in_port.ofp_port = out_dev->ofp_port;
flow->metadata = htonll(0);
memset(&flow->tunnel, 0, sizeof flow->tunnel);
+ memset(&ctx->wc->masks.tunnel, 0, sizeof ctx->wc->masks.tunnel);
flow->tunnel.metadata.tab =
ofproto_get_tun_tab(&out_dev->xbridge->ofproto->up);
ctx->wc->masks.tunnel.metadata.tab = flow->tunnel.metadata.tab;
--
2.7.4
More information about the dev
mailing list