git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ebda0
)
examples/ipv4_multicast: support double vlan stripping and insertion
author
Helin Zhang
<helin.zhang@intel.com>
Thu, 11 Jun 2015 07:03:59 +0000
(15:03 +0800)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 7 Jul 2015 14:42:49 +0000
(16:42 +0200)
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>
examples/ipv4_multicast/main.c
patch
|
blob
|
history
diff --git
a/examples/ipv4_multicast/main.c
b/examples/ipv4_multicast/main.c
index
2a2b915
..
d4253c0
100644
(file)
--- 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;