New upstream version 17.11.5
[deb_dpdk.git] / examples / ipv4_multicast / main.c
index 83ac0d8..6cfa6eb 100644 (file)
@@ -289,7 +289,7 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone)
 
        /* update header's fields */
        hdr->pkt_len = (uint16_t)(hdr->data_len + pkt->pkt_len);
-       hdr->nb_segs = (uint8_t)(pkt->nb_segs + 1);
+       hdr->nb_segs = pkt->nb_segs + 1;
 
        /* copy metadata from source packet*/
        hdr->port = pkt->port;
@@ -298,8 +298,6 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone)
        hdr->tx_offload = pkt->tx_offload;
        hdr->hash = pkt->hash;
 
-       hdr->ol_flags = pkt->ol_flags;
-
        __rte_mbuf_sanity_check(hdr, 1);
        return hdr;
 }