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>
This commit is contained in:
parent
1aaa1b2bd4
commit
70a19dc938
@ -254,18 +254,10 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone)
|
|||||||
/* prepend new header */
|
/* prepend new header */
|
||||||
hdr->next = pkt;
|
hdr->next = pkt;
|
||||||
|
|
||||||
|
|
||||||
/* update header's fields */
|
/* update header's fields */
|
||||||
hdr->pkt_len = (uint16_t)(hdr->data_len + pkt->pkt_len);
|
hdr->pkt_len = (uint16_t)(hdr->data_len + pkt->pkt_len);
|
||||||
hdr->nb_segs = pkt->nb_segs + 1;
|
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);
|
__rte_mbuf_sanity_check(hdr, 1);
|
||||||
return hdr;
|
return hdr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user