From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 1CA471B6ED for ; Fri, 10 Nov 2017 14:57:33 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id 15so8681993wrb.5 for ; Fri, 10 Nov 2017 05:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lOBu3jFJlnPHDQOGEXilQhPBLGj4PzQZjD7RXEuyb44=; b=uYwAB7O/J4OJV42hG/smLUTP1ZR3/WVvLvbbSlNzT4n0jXZgVNlTA7HybtM4d+reIt 1XBMB/RV4dOuSrsdAOVYNkg1PaveVaeqKbd1Yb0OgF+uZML2uXduEJBc5st1nV5WPw6q e38gAS2nHgf6SgCz/Sm7+8ASexc2CElaTim1vpE40KnUGYqYKYfO6gFtuEUOPfqnQcMH MnIoUHDGkJi50os2YEZ7zzpP8oJHlwUSnahzk++1ZfxOAEGlsEP/wK3jX1Ez/WKMMnDk JyGxpByhcmZoGnX2g40Pg0URjnvXu1KQWT+avvGx/EDgyHnUFBIi056jh3etLO8Y9sce xzsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lOBu3jFJlnPHDQOGEXilQhPBLGj4PzQZjD7RXEuyb44=; b=U1tp1x7o9QCcz01m3dR282qlLv8RJeg6ffAVUlrwrkmO+j9cWvvhb7vLyP2dkK8FPk YFUlJIPaTvGHgWwmb2VUnzKSPb8CftNIjcRXKPsNMrJH+SweL1JhLbEEwI9QG3821cpU ZarGksZfvGa1MXRUXOeDrg0wHXg4YDBXztB2bpUnxJxDBDw8lg8rdOD4zjpCr7ub4X33 054eghhyXOxf6PumDYTySkBzYl6HyqPqdfCEGwaExNu62AYfgk5q4TAWQ83df2SGcg3N Tkn/WMDZRj0PrPZrlcQU8+4oHtl0VrCf4Fg0w0BWO+BpbOADc04JKOpmAvsNiTMFWc6a EyEA== X-Gm-Message-State: AJaThX4TWAyjl2z1ahlczSwy/Wbv+OZEwns8qv7H1VNhsUJcftEuNdJF jqCzqtyc2jlgsffDylO7PYldVEtu X-Google-Smtp-Source: AGs4zMabUGMkfBOkgajEoYfrSoplh64qSW2EsJQPM12cKGUG1ffcIn5dlylFKIeNeX7AwjL/2nCg9g== X-Received: by 10.223.142.97 with SMTP id n88mr363578wrb.244.1510322253619; Fri, 10 Nov 2017 05:57:33 -0800 (PST) Received: from xone.net.sahm.ae ([94.205.75.192]) by smtp.gmail.com with ESMTPSA id l16sm2409323wma.19.2017.11.10.05.57.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 05:57:33 -0800 (PST) From: "Ilya V. Matveychikov" To: dev@dpdk.org Cc: "Ilya V. Matveychikov" , olivier.matz@6wind.com Date: Fri, 10 Nov 2017 16:57:25 +0300 Message-Id: <20171110135725.24165-1-matvejchikov@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: References: 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: Fri, 10 Nov 2017 13:57:34 -0000 Fixes: 97cb466d65c9 ("mbuf: use 2 bytes for port and nb segments") Cc: olivier.matz@6wind.com 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 fd1af0066..7a8e7ebce 100644 --- a/doc/guides/sample_app_ug/ipv4_multicast.rst +++ b/doc/guides/sample_app_ug/ipv4_multicast.rst @@ -339,7 +339,7 @@ It is the mcast_out_pkt() function that performs the packet duplication (either /* update header's fields */ hdr->pkt.pkt_len = (uint16_t)(hdr->pkt.data_len + pkt->pkt.pkt_len); - hdr->pkt.nb_segs = (uint8_t)(pkt->pkt.nb_segs + 1); + hdr->pkt.nb_segs = 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 83ac0d808..1c5851654 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; -- 2.14.2