From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 93E7A9AD8 for ; Thu, 11 Jun 2015 09:04:26 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 11 Jun 2015 00:04:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,593,1427785200"; d="scan'208";a="725145183" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 11 Jun 2015 00:04:22 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t5B74Jt6032541; Thu, 11 Jun 2015 15:04:19 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t5B74H3o007347; Thu, 11 Jun 2015 15:04:19 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t5B74Hb7007343; Thu, 11 Jun 2015 15:04:17 +0800 From: Helin Zhang To: dev@dpdk.org Date: Thu, 11 Jun 2015 15:03:59 +0800 Message-Id: <1434006240-7271-7-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1434006240-7271-1-git-send-email-helin.zhang@intel.com> References: <1433214967-22247-1-git-send-email-helin.zhang@intel.com> <1434006240-7271-1-git-send-email-helin.zhang@intel.com> Subject: [dpdk-dev] [PATCH v3 6/7] examples/ipv4_multicast: support double vlan stripping and insertion X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2015 07:04:27 -0000 The outer vlan should be copied from source packet buffer to support double vlan stripping and insertion, as double vlan can be stripped or inserted by some of NIC hardware. Signed-off-by: Helin Zhang --- examples/ipv4_multicast/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c index 2a2b915..d4253c0 100644 --- a/examples/ipv4_multicast/main.c +++ b/examples/ipv4_multicast/main.c @@ -298,6 +298,7 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone) /* copy metadata from source packet*/ hdr->port = pkt->port; hdr->vlan_tci = pkt->vlan_tci; + hdr->vlan_tci_outer = pkt->vlan_tci_outer; hdr->tx_offload = pkt->tx_offload; hdr->hash = pkt->hash; -- 1.9.3