From: Ilya Matveychikov Subject: [PATCH] examples: fix for incomplete nb_segs type change Date: Thu, 9 Nov 2017 17:55:01 +0400 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable To: dev@dpdk.org Return-path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 75B181B6C2 for ; Thu, 9 Nov 2017 14:55:03 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id b9so17908309wmh.0 for ; Thu, 09 Nov 2017 05:55:03 -0800 (PST) Received: from [10.61.0.167] (bba193485.alshamil.net.ae. [217.165.96.191]) by smtp.gmail.com with ESMTPSA id c32sm6059755eda.57.2017.11.09.05.55.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Nov 2017 05:55:02 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: 97cb466d ("mbuf: use 2 bytes for port and nb segments") Signed-off-by: Ilya V. Matveychikov --- doc/guides/sample_app_ug/ipv4_multicast.rst | 2 +- examples/ipv4_multicast/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/sample_app_ug/ipv4_multicast.rst = b/doc/guides/sample_app_ug/ipv4_multicast.rst index 49712a0..9f50e32 100644 --- a/doc/guides/sample_app_ug/ipv4_multicast.rst +++ b/doc/guides/sample_app_ug/ipv4_multicast.rst @@ -364,7 +364,7 @@ It is the mcast_out_pkt() function that performs the = packet duplication (either /* update header's fields */ hdr->pkt.pkt_len =3D (uint16_t)(hdr->pkt.data_len + = pkt->pkt.pkt_len); - hdr->pkt.nb_segs =3D (uint8_t)(pkt->pkt.nb_segs + 1); + hdr->pkt.nb_segs =3D (uint16_t)(pkt->pkt.nb_segs + 1); /* copy metadata from source packet */ diff --git a/examples/ipv4_multicast/main.c = b/examples/ipv4_multicast/main.c index 9a13d35..1a82bc0 100644 --- a/examples/ipv4_multicast/main.c +++ b/examples/ipv4_multicast/main.c @@ -291,7 +291,7 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone) /* update header's fields */ hdr->pkt_len =3D (uint16_t)(hdr->data_len + pkt->pkt_len); - hdr->nb_segs =3D (uint8_t)(pkt->nb_segs + 1); + hdr->nb_segs =3D (uint16_t)(pkt->nb_segs + 1); /* copy metadata from source packet*/ hdr->port =3D pkt->port; -- 2.7.4=