From: Ben Pfaff Date: Wed, 19 Jan 2011 22:53:16 +0000 (-0800) Subject: ofproto: Fix NXAST_REG_MOVE with NXM_NX_TUN_ID as destination. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=926947e61c5dfaebad7264859b50e82f0109ab81;p=openvswitch ofproto: Fix NXAST_REG_MOVE with NXM_NX_TUN_ID as destination. The documentation claimed this worked but it wasn't actually implemented. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index df5850f1..3084c09e 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2863,12 +2863,16 @@ xlate_reg_move_action(struct action_xlate_ctx *ctx, const struct nx_action_reg_move *narm) { ovs_be16 old_tci = ctx->flow.vlan_tci; + ovs_be64 old_tun = ctx->flow.tun_id; nxm_execute_reg_move(narm, &ctx->flow); if (ctx->flow.vlan_tci != old_tci) { xlate_set_dl_tci(ctx); } + if (ctx->flow.tun_id != old_tun) { + nl_msg_put_be64(ctx->odp_actions, ODPAT_SET_TUNNEL, ctx->flow.tun_id); + } } static void