summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorWei Zhao <wei.zhao1@intel.com>2018-11-21 17:49:17 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-12-19 22:27:32 +0100
commit70a19dc938baae4158ac951b7058c83c5188b940 (patch)
treea9b73a07b054cc76add305d31c89a96fefe5bc03 /examples/ipv4_multicast
parent1aaa1b2bd4d38f16568a956d83268748acace0d1 (diff)
downloaddpdk-70a19dc938baae4158ac951b7058c83c5188b940.zip
dpdk-70a19dc938baae4158ac951b7058c83c5188b940.tar.gz
dpdk-70a19dc938baae4158ac951b7058c83c5188b940.tar.xz
examples/ipv4_multicast: remove useless mbuf info copy
There is no need for these useless information and it had better be removed in order to not confuse users. Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index 428ca46..1eef291 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -254,18 +254,10 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone)
/* prepend new header */
hdr->next = pkt;
-
/* update header's fields */
hdr->pkt_len = (uint16_t)(hdr->data_len + pkt->pkt_len);
hdr->nb_segs = pkt->nb_segs + 1;
- /* 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;
-
__rte_mbuf_sanity_check(hdr, 1);
return hdr;
}