[dpdk-stable] patch 'raw/skeleton: reset test statistics' has been queued to stable release 19.11.6
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Wed Oct 28 11:44:29 CET 2020
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 d8d56bd8c2c7c1053226fb124f9976bea516f22d Mon Sep 17 00:00:00 2001
From: Lukasz Wojciechowski <l.wojciechow at partner.samsung.com>
Date: Mon, 21 Sep 2020 23:44:19 +0200
Subject: [PATCH] raw/skeleton: reset test statistics
[ upstream commit 22b5c63ed13fbae5934a312cba657ec1901f7539 ]
Statistics: passed, failed, unsupported and total are kept
in global static variables. As global variables they are initiated
with zeroes. However running test multiple times cumulates results
from previous calls.
This patch resets statistics with zeroes in testsuite_setup().
To reproduce issue fixed by this patch, run rawdev_autotest command
in dpdk-test app multiple times.
Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases")
Signed-off-by: Lukasz Wojciechowski <l.wojciechow at partner.samsung.com>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
drivers/raw/skeleton/skeleton_rawdev_test.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/raw/skeleton/skeleton_rawdev_test.c b/drivers/raw/skeleton/skeleton_rawdev_test.c
index 9ecfdee818..1190e28bb7 100644
--- a/drivers/raw/skeleton/skeleton_rawdev_test.c
+++ b/drivers/raw/skeleton/skeleton_rawdev_test.c
@@ -42,6 +42,12 @@ static int
testsuite_setup(void)
{
uint8_t count;
+
+ total = 0;
+ passed = 0;
+ failed = 0;
+ unsupported = 0;
+
count = rte_rawdev_count();
if (!count) {
SKELDEV_TEST_INFO("\tNo existing rawdev; "
--
2.20.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2020-10-28 10:35:15.181852064 +0000
+++ 0110-raw-skeleton-reset-test-statistics.patch 2020-10-28 10:35:11.664832379 +0000
@@ -1,8 +1,10 @@
-From 22b5c63ed13fbae5934a312cba657ec1901f7539 Mon Sep 17 00:00:00 2001
+From d8d56bd8c2c7c1053226fb124f9976bea516f22d Mon Sep 17 00:00:00 2001
From: Lukasz Wojciechowski <l.wojciechow at partner.samsung.com>
Date: Mon, 21 Sep 2020 23:44:19 +0200
Subject: [PATCH] raw/skeleton: reset test statistics
+[ upstream commit 22b5c63ed13fbae5934a312cba657ec1901f7539 ]
+
Statistics: passed, failed, unsupported and total are kept
in global static variables. As global variables they are initiated
with zeroes. However running test multiple times cumulates results
@@ -14,7 +16,6 @@
in dpdk-test app multiple times.
Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases")
-Cc: stable at dpdk.org
Signed-off-by: Lukasz Wojciechowski <l.wojciechow at partner.samsung.com>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
@@ -23,7 +24,7 @@
1 file changed, 6 insertions(+)
diff --git a/drivers/raw/skeleton/skeleton_rawdev_test.c b/drivers/raw/skeleton/skeleton_rawdev_test.c
-index bb4b6efe40..1405df080d 100644
+index 9ecfdee818..1190e28bb7 100644
--- a/drivers/raw/skeleton/skeleton_rawdev_test.c
+++ b/drivers/raw/skeleton/skeleton_rawdev_test.c
@@ -42,6 +42,12 @@ static int
More information about the stable
mailing list