From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helin Zhang Subject: [PATCH v3 6/7] examples/ipv4_multicast: support double vlan stripping and insertion Date: Thu, 11 Jun 2015 15:03:59 +0800 Message-ID: <1434006240-7271-7-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> To: dev@dpdk.org 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) In-Reply-To: <1434006240-7271-1-git-send-email-helin.zhang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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