summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorIlya V. Matveychikov <matvejchikov@gmail.com>2017-11-10 16:57:25 +0300
committerThomas Monjalon <thomas@monjalon.net>2017-11-12 04:15:54 +0100
commit4c20622a95087b42ddb403406d3877a9dc3d731b (patch)
tree34dffa4f710c8ced1f376435d5d03591bf0794f8 /examples/ipv4_multicast
parentf046826e765c2777fc2bfc32f992bee0eaef9811 (diff)
downloaddpdk-4c20622a95087b42ddb403406d3877a9dc3d731b.zip
dpdk-4c20622a95087b42ddb403406d3877a9dc3d731b.tar.gz
dpdk-4c20622a95087b42ddb403406d3877a9dc3d731b.tar.xz
examples/ipv4_multicast: fix segments number type
Fixes: 97cb466d65c9 ("mbuf: use 2 bytes for port and nb segments") Signed-off-by: Ilya V. Matveychikov <matvejchikov@gmail.com>
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index 83ac0d8..1c58516 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -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;