[dpdk-stable] patch 'test: check flow classifier creation' has been queued to stable release 19.11.9

Christian Ehrhardt christian.ehrhardt at canonical.com
Thu Jun 10 14:06:24 CEST 2021


Hi,

FYI, your patch has been queued to stable release 19.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/12/21. 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.

Queued patches are on a temporary branch at:
https://github.com/cpaelzer/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/cpaelzer/dpdk-stable-queue/commit/62717ed0e07ec3fb396a071b6c6acaeaeb9d7d4d

Thanks.

Christian Ehrhardt <christian.ehrhardt at canonical.com>

---
>From 62717ed0e07ec3fb396a071b6c6acaeaeb9d7d4d Mon Sep 17 00:00:00 2001
From: "Min Hu (Connor)" <humin29 at huawei.com>
Date: Thu, 22 Apr 2021 14:13:54 +0800
Subject: [PATCH] test: check flow classifier creation

[ upstream commit 705b04af1c100c464b6d9238408e84cfeffc489c ]

'cls->cls' will be NULL if flow classifier create has failed,
then segmentation fault will occur if the variable is used.

This patch fixed it.

Fixes: 9c9befea4f57 ("test: add flow classify unit tests")

Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
Acked-by: Bernard Iremonger <bernard.iremonger at intel.com>
---
 app/test/test_flow_classify.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app/test/test_flow_classify.c b/app/test/test_flow_classify.c
index ef0b6fdd5c..951606f248 100644
--- a/app/test/test_flow_classify.c
+++ b/app/test/test_flow_classify.c
@@ -828,6 +828,12 @@ test_flow_classify(void)
 	cls_params.name = "flow_classifier";
 	cls_params.socket_id = 0;
 	cls->cls = rte_flow_classifier_create(&cls_params);
+	if (cls->cls == NULL) {
+		printf("Line %i: flow classifier create has failed!\n",
+		       __LINE__);
+		rte_free(cls);
+		return TEST_FAILED;
+	}
 
 	/* initialise ACL table params */
 	table_acl_params.n_rule_fields = RTE_DIM(ipv4_defs);
-- 
2.31.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-06-10 14:04:59.770950913 +0200
+++ 0036-test-check-flow-classifier-creation.patch	2021-06-10 14:04:58.066024643 +0200
@@ -1 +1 @@
-From 705b04af1c100c464b6d9238408e84cfeffc489c Mon Sep 17 00:00:00 2001
+From 62717ed0e07ec3fb396a071b6c6acaeaeb9d7d4d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 705b04af1c100c464b6d9238408e84cfeffc489c ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list