Signed-off-by: Johnson Li <johnson...@intel.com>

diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index f5c1888..fb3cd2e 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -5129,8 +5129,17 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t 
ofpacts_len,
             memset(&flow->nsh, 0x0, sizeof flow->nsh);
             nl_msg_put_flag(ctx->odp_actions, OVS_ACTION_ATTR_POP_NSH);
             break;
-        case OFPACT_PUSH_ETH:
+        case OFPACT_PUSH_ETH: {
+            struct ovs_action_push_eth eth;
+
+            eth.addresses.eth_dst = flow->dl_dst;
+            eth.addresses.eth_src = flow->dl_src;
+            nl_msg_put_unspec(ctx->odp_actions, OVS_ACTION_ATTR_PUSH_ETH,
+                              &eth, sizeof eth);
+            break;
+        }
         case OFPACT_POP_ETH:
+            nl_msg_put_flag(ctx->odp_actions, OVS_ACTION_ATTR_POP_ETH);
             break;
         }
 
-- 
1.8.4.2

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to