examples/ipv4_multicast: remove useless mbuf info copy
PATCH 1/1 examples/ipv4_multicast: remove useless mbuf info copy
There is not need for these useless information and it had better be removed in oder not to confusing users.
--- examples/ipv4_multicast/main.c | 8 -------- 1 file changed, 8 deletions(-)
examples/ipv4_multicast/main.c +0 -8
@@ -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; }
Signature · 1 line
2.7.5
Add the background for this patch
https://mails.dpdk.org/archives/dev/2018-November/119391.html
Quoted 41 lines
-----Original Message-----
From: Zhao1, Wei
Sent: Wednesday, November 21, 2018 5:49 PM
To: [email protected]
Cc: [email protected]; Ananyev, Konstantin <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] examples/ipv4_multicast: remove useless mbuf info copyThere is not need for these useless information and it had better be removed in oder not to confusing users.
Signed-off-by Wei Zhao <[email protected]>--- examples/ipv4_multicast/main.c | 8 -------- 1 file changed, 8 deletions(-)(quoted diff) +0
-0
b/examples/ipv4_multicast/main.cindex 428ca46..1eef291 100644examples/ipv4_multicast/main.c +0
-9@@ -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; } --2.7.5
Thomas Monjalon
Applied21/11/2018 11:17, Zhao1, Wei:
Quoted 7 lines
Add the background for this patch
https://mails.dpdk.org/archives/dev/2018-November/119391.htmlQuoted 4 lines
There is not need for these useless information and it had better be removed in oder not to confusing users.
Signed-off-by Wei Zhao <[email protected]>
Applied, thanks