Signed-off-by: speech_white <humin29@huawei.com> (cherry picked from commit cde27f08d4dbefb7f03bfca6229f95cb88bf08a2)
31 lines
1016 B
Diff
31 lines
1016 B
Diff
From 2a1e7c4782ee21823eb37acbb073bcf9f73b173f Mon Sep 17 00:00:00 2001
|
|
From: Chengwen Feng <fengchengwen@huawei.com>
|
|
Date: Sat, 22 Jan 2022 09:51:39 +0800
|
|
Subject: [PATCH] net/hns3: remove non re-entrant strerror call
|
|
|
|
This patch delete strerror invoke which was non re-entrant.
|
|
|
|
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
|
|
Acked-by: Min Hu (Connor) <humin29@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_fdir.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c
|
|
index d043f5786d..2a7978ac07 100644
|
|
--- a/drivers/net/hns3/hns3_fdir.c
|
|
+++ b/drivers/net/hns3/hns3_fdir.c
|
|
@@ -919,8 +919,7 @@ static int hns3_insert_fdir_filter(struct hns3_hw *hw,
|
|
sig = rte_hash_crc(key, sizeof(*key), 0);
|
|
ret = rte_hash_add_key_with_hash(fdir_info->hash_handle, key, sig);
|
|
if (ret < 0) {
|
|
- hns3_err(hw, "Hash table full? err:%d(%s)!", ret,
|
|
- strerror(-ret));
|
|
+ hns3_err(hw, "Hash table full? err:%d!", ret);
|
|
return ret;
|
|
}
|
|
|
|
--
|
|
2.33.0
|
|
|