summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorHelin Zhang <helin.zhang@intel.com>2015-06-11 15:03:59 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-07 16:42:49 +0200
commit1e6854467495523e4fba728b3e5611020523a2eb (patch)
treead0bbf9cc65920187a62bc526ff509eee611fbb5 /examples/ipv4_multicast
parent92ebda07ee58cf6966305ba03b50b81debfb2d98 (diff)
downloaddpdk-1e6854467495523e4fba728b3e5611020523a2eb.zip
dpdk-1e6854467495523e4fba728b3e5611020523a2eb.tar.gz
dpdk-1e6854467495523e4fba728b3e5611020523a2eb.tar.xz
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 <helin.zhang@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/main.c1
1 files changed, 1 insertions, 0 deletions
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;