From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=cjqijXHXuko3mdL5P1J7FtcvShGZoSC1NnKH/NyU0cg=; b=M+ymUWYcTLI8nb6RO9gR9K//j9zdm60st27IYBGnz6nyu0wfB6v/25g/SyEqe9MIJo KwuJzBWmrQeSG1h5amDX7GVTb8x1akHnquoUKGBgSXAu5lFDeeUOhR3mH+dhow3Zmpes u+OrEXuIaAF/pZbtNV6BvYuEm53Vzt35WRcuOL26WC77HRl5kjGb2N01raDf+Hao1jXR KWWv+rekgmIo75d/dOfNrDS//wLTgItG33FOIuK2qY8IndYOdc8QqoCJn/SYOs9dRKVC T9vZXcqwSce0VQ2cIuAwAbmo3p9sxcNbGdgxPaby7JXw+ASa4Ks+iPUNusU77uz+KloB SFXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=cjqijXHXuko3mdL5P1J7FtcvShGZoSC1NnKH/NyU0cg=; b=Auq31YA9Iaq7H7Cbl1h4RI+GpGSdefAwgkZ1D5J4EQVUw8FSwYMBzZ6CnMnl70Y7Ds gPXMfOIvwcWvsZXszrbRITgMaMfKd0hgVF9z9sr0fK3flNkZJQzd2LaUktYOLLHvrW7l SBtt5g0iFKVMxjII9qNz0oSm8H6kXprMBiIB6n69YVFYPtkIyPaZdOW3EJP6SXeGBrP2 sgTnMjJsG40tD9lnaiogE6Yg9INKHwUmdpp2jrIJECN4dGpRLkKHrRR+vjoTX442Futy 5f3k4HiyDtPa+Tl+Sg7senY3tPexjEAYaVLE9ph6cAllhrT5t8iicaFjlUPYn57R5E6f yVYg== X-Gm-Message-State: AJaThX6r4F1OPYN5pd+NapMu1tUuzjLSiwP+XaWKGO5WemYoFYxGTd0F sLMr7RWhFPjSuSacGcKey5ZSQVur X-Google-Smtp-Source: ABhQp+SUNsGXR+M6GnnfYkrE06jQSZ/Q2AX+m191fv4njG4wOU6LVtOKZ6RVsb7HwnLADMTsRYvNCw== X-Received: by 10.80.182.118 with SMTP id c51mr797355ede.204.1510235702871; Thu, 09 Nov 2017 05:55:02 -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) From: Ilya Matveychikov Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Message-Id: Date: Thu, 9 Nov 2017 17:55:01 +0400 To: dev@dpdk.org X-Mailer: Apple Mail (2.3273) Subject: [dpdk-dev] [PATCH] examples: fix for incomplete nb_segs type change X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2017 13:55:03 -0000 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=