examples/ipv4_multicast: fix segments number type
[dpdk.git] / examples / ipv4_multicast / main.c
index 1b6feae..1c58516 100644 (file)
@@ -47,7 +47,6 @@
 #include <rte_log.h>
 #include <rte_memory.h>
 #include <rte_memcpy.h>
-#include <rte_memzone.h>
 #include <rte_eal.h>
 #include <rte_launch.h>
 #include <rte_atomic.h>
@@ -57,7 +56,6 @@
 #include <rte_per_lcore.h>
 #include <rte_branch_prediction.h>
 #include <rte_interrupts.h>
-#include <rte_pci.h>
 #include <rte_random.h>
 #include <rte_debug.h>
 #include <rte_ether.h>
@@ -291,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;