[dpdk-stable] patch 'net/hns3: fix flow director error message' has been queued to stable release 19.11.4
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Fri Jul 24 13:57:45 CEST 2020
Hi,
FYI, your patch has been queued to stable release 19.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/26/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 2118606fd3f11cf4778b312e08faac0549db0401 Mon Sep 17 00:00:00 2001
From: "Wei Hu (Xavier)" <xavier.huwei at huawei.com>
Date: Tue, 9 Jun 2020 16:44:14 +0800
Subject: [PATCH] net/hns3: fix flow director error message
[ upstream commit 41b966ffb4f70792d8cd851173eab15bca183a7c ]
There is a coverity defect related "Argument cannot be negative".
This patch fixes it by passing '-ret' to the function strerror() when
ret is negative.
Coverity issue: 349933
Fixes: fcba820d9b9e ("net/hns3: support flow director")
Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
---
drivers/net/hns3/hns3_fdir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c
index 53c6448cd..79f3f0d14 100644
--- a/drivers/net/hns3/hns3_fdir.c
+++ b/drivers/net/hns3/hns3_fdir.c
@@ -893,7 +893,7 @@ static int hns3_insert_fdir_filter(struct hns3_hw *hw,
if (ret < 0) {
rte_spinlock_unlock(&fdir_info->flows_lock);
hns3_err(hw, "Hash table full? err:%d(%s)!", ret,
- strerror(ret));
+ strerror(-ret));
return ret;
}
--
2.20.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2020-07-24 12:53:49.656840290 +0100
+++ 0027-net-hns3-fix-flow-director-error-message.patch 2020-07-24 12:53:48.215005118 +0100
@@ -1,8 +1,10 @@
-From 41b966ffb4f70792d8cd851173eab15bca183a7c Mon Sep 17 00:00:00 2001
+From 2118606fd3f11cf4778b312e08faac0549db0401 Mon Sep 17 00:00:00 2001
From: "Wei Hu (Xavier)" <xavier.huwei at huawei.com>
Date: Tue, 9 Jun 2020 16:44:14 +0800
Subject: [PATCH] net/hns3: fix flow director error message
+[ upstream commit 41b966ffb4f70792d8cd851173eab15bca183a7c ]
+
There is a coverity defect related "Argument cannot be negative".
This patch fixes it by passing '-ret' to the function strerror() when
@@ -10,7 +12,6 @@
Coverity issue: 349933
Fixes: fcba820d9b9e ("net/hns3: support flow director")
-Cc: stable at dpdk.org
Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
---
@@ -18,7 +19,7 @@
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c
-index 4c5928ffc..7bc5bf831 100644
+index 53c6448cd..79f3f0d14 100644
--- a/drivers/net/hns3/hns3_fdir.c
+++ b/drivers/net/hns3/hns3_fdir.c
@@ -893,7 +893,7 @@ static int hns3_insert_fdir_filter(struct hns3_hw *hw,
More information about the stable
mailing list