From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4066DA04DD for ; Wed, 28 Oct 2020 11:52:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 33BEDC9F6; Wed, 28 Oct 2020 11:52:27 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 8EACCC9C0 for ; Wed, 28 Oct 2020 11:52:25 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id m13so883961wrj.7 for ; Wed, 28 Oct 2020 03:52:25 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=WP6v8pjQXDEkda1kRfCtRjroi5QIH20f2ky8g/+b+p4=; b=HgNq9pDiXaJjdKfe9hfU1cKWFgpvifuWbjscjCtKXo5uEAqXPYFZyWtJamAiu6D2VC iSxo52seHkNDYh0NHP0Jr+u7ML+8HsSuKA0MzLKnfY1oR3oc+oEqNJNmQOwgwco6fjyu +vbOk+LX5XYPMGO6orzxzAJjIvL7GrDcNTm+Vc/dWP6hBC04xgr7+domEWhf/MqN3/Je 9oj7qLzND8FdeqgY56WdvECtesChvQ+RUwofCVNjtPcF7bRbiTteRZJq5scmpf20Mt/C o8fnSgipo+08CNFGT3zbmonBGr23YX8QBDrogDxQ3ZgZB8ytg55b1gJ9aYPQAChj5aZK KyZA== 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:mime-version:content-transfer-encoding; bh=WP6v8pjQXDEkda1kRfCtRjroi5QIH20f2ky8g/+b+p4=; b=Nw4pYZrC5Id2AMZvwOUdW3X8FfbTdf1L3tqXDvnVJyqBTLz8C5f4vT52U2TMLan8d8 5UgGmkSsug/CuwYgeKKN2fjTx2KmtMn0+srIDUiad6ruDHeGCFSHMONm1DuZBLSZbJGB pprmagCaRKIYCJHelnIwq08jWumM5huOMNY2Do+C1pmYj/wzcl1oWSLiM2hxeR5QtGk1 SmVeUlqAiRSRWRQu7KRLhpKdP7G5mBN5t4c2htyrWwJdJOjaimxoykwC7oYODEuWO1O+ yicdvqQh3dwTkTPHldqDXH3yV98sAarhPzo8tixzxL0acCLGV4q/1We8GDL35uoWnxf1 VwLg== X-Gm-Message-State: AOAM531EXMBpcaIL9GEZMC6OKezhIaMqtZOFP8Uvs4aYmfK6I4SHILLh WdILBFqG/0OFD2nwMhu47Cg= X-Google-Smtp-Source: ABdhPJxj/45jF/GHgyG9mM7IbgGxrrWrpPFHR3VqT4T7PLP7Tz6HLi/eAeHZSFB2nDB9cPKwQzxBvg== X-Received: by 2002:adf:f3d2:: with SMTP id g18mr7996273wrp.367.1603882344277; Wed, 28 Oct 2020 03:52:24 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id z5sm6187083wrw.87.2020.10.28.03.52.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 03:52:23 -0700 (PDT) From: luca.boccassi@gmail.com To: Kevin Laatz Cc: Bruce Richardson , dpdk stable Date: Wed, 28 Oct 2020 10:44:37 +0000 Message-Id: <20201028104606.3504127-118-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201028104606.3504127-1-luca.boccassi@gmail.com> References: <20201028104606.3504127-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'examples/ioat: fix stats print' has been queued to stable release 19.11.6 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/30/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 1046574c774105dc4b955ae5ec2e102068eef758 Mon Sep 17 00:00:00 2001 From: Kevin Laatz Date: Thu, 17 Sep 2020 14:07:40 +0100 Subject: [PATCH] examples/ioat: fix stats print [ upstream commit 64d0a9097d96e554697f8473f196266bfaf62b9d ] Currently some of the status string at the top of the stats output is being cut off. To fix this, the status string array size has been increased. In addition to this, the "\n" has been moved to the printf, rather than having it in the last string, in case of future formatting issues due to truncation. Bugzilla ID: 536 Fixes: 632bcd9b5d4f ("examples/ioat: print statistics") Signed-off-by: Kevin Laatz Acked-by: Bruce Richardson --- examples/ioat/ioatfwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c index b66ee73bce..7971442b5d 100644 --- a/examples/ioat/ioatfwd.c +++ b/examples/ioat/ioatfwd.c @@ -168,7 +168,7 @@ print_stats(char *prgname) struct rte_rawdev_xstats_name *names_xstats; uint64_t *xstats; unsigned int *ids_xstats, nb_xstats; - char status_string[120]; /* to print at the top of the output */ + char status_string[255]; /* to print at the top of the output */ int status_strlen; int ret; @@ -194,7 +194,7 @@ print_stats(char *prgname) "Rx Queues = %d, ", nb_queues); status_strlen += snprintf(status_string + status_strlen, sizeof(status_string) - status_strlen, - "Ring Size = %d\n", ring_size); + "Ring Size = %d", ring_size); /* Allocate memory for xstats names and values */ ret = rte_rawdev_xstats_names_get( @@ -251,7 +251,7 @@ print_stats(char *prgname) memset(&delta_ts, 0, sizeof(struct total_statistics)); - printf("%s", status_string); + printf("%s\n", status_string); for (i = 0; i < cfg.nb_ports; i++) { port_id = cfg.ports[i].rxtx_port; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-10-28 10:35:15.414850746 +0000 +++ 0118-examples-ioat-fix-stats-print.patch 2020-10-28 10:35:11.672832496 +0000 @@ -1,8 +1,10 @@ -From 64d0a9097d96e554697f8473f196266bfaf62b9d Mon Sep 17 00:00:00 2001 +From 1046574c774105dc4b955ae5ec2e102068eef758 Mon Sep 17 00:00:00 2001 From: Kevin Laatz Date: Thu, 17 Sep 2020 14:07:40 +0100 Subject: [PATCH] examples/ioat: fix stats print +[ upstream commit 64d0a9097d96e554697f8473f196266bfaf62b9d ] + Currently some of the status string at the top of the stats output is being cut off. To fix this, the status string array size has been increased. In addition to this, the "\n" has been moved to the printf, rather than @@ -11,7 +13,6 @@ Bugzilla ID: 536 Fixes: 632bcd9b5d4f ("examples/ioat: print statistics") -Cc: stable@dpdk.org Signed-off-by: Kevin Laatz Acked-by: Bruce Richardson @@ -20,7 +21,7 @@ 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c -index e6d1d1236e..8cf606e25b 100644 +index b66ee73bce..7971442b5d 100644 --- a/examples/ioat/ioatfwd.c +++ b/examples/ioat/ioatfwd.c @@ -168,7 +168,7 @@ print_stats(char *prgname)