From: Helin Zhang Date: Thu, 11 Jun 2015 07:03:59 +0000 (+0800) Subject: examples/ipv4_multicast: support double vlan stripping and insertion X-Git-Tag: spdx-start~8862 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1e6854467495523e4fba728b3e5611020523a2eb;p=dpdk.git examples/ipv4_multicast: support double vlan stripping and insertion 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 Acked-by: Jingjing Wu --- diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c index 2a2b915f0f..d4253c0ec2 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;