Sync some patchs from upstreaming and modifies are as follow: - net/hns3: fix mailbox sync - net/hns3: report maximum buffer size - ethdev: add maximum Rx buffer size - app/procinfo: show RSS hash algorithm - ethdev: get RSS algorithm names - app/procinfo: adjust format of RSS info - app/procinfo: fix RSS info - net/hns3: support setting and querying RSS hash function - net/hns3: report RSS hash algorithms capability - ethdev: set and query RSS hash algorithm - ethdev: clarify RSS related fields usage - net/hns3: fix uninitialized hash algo value - net/hns3: keep set/get algo key functions local - net/hns3: fix some error logs - net/hns3: fix some return values - net/hns3: fix LRO offload to report - net/hns3: fix setting DCB capability - app/testpmd: ease configuring all offloads - net/hns3: refactor interrupt state query - net/hns3: fix IMP or global reset - net/hns3: fix multiple reset detected log - net/hns3: remove reset log in secondary - net/hns3: fix double stats for IMP and global reset - net/hns3: fix crash for NEON and SVE - net/hns3: fix unchecked Rx free threshold - net/hns3: fix typo in function name - net/hns3: fix build warning - telemetry: fix repeat display when callback don't init dict Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From f99da9ff1fd939d98025625bca3986054f00592e Mon Sep 17 00:00:00 2001
|
|
From: Jie Hai <haijie1@huawei.com>
|
|
Date: Tue, 31 Oct 2023 20:23:59 +0800
|
|
Subject: [PATCH 383/394] net/hns3: fix uninitialized hash algo value
|
|
|
|
[ upstream commit 177cf5c93f9ac86d8a2b817115ef1e979023414c ]
|
|
|
|
This patch initializes "hash_algo" as zero to avoid using
|
|
it uninitialized.
|
|
|
|
Fixes: e3069658da9f ("net/hns3: reimplement hash flow function")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Jie Hai <haijie1@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_rss.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c
|
|
index 9bb8426256..eeeca71a5c 100644
|
|
--- a/drivers/net/hns3/hns3_rss.c
|
|
+++ b/drivers/net/hns3/hns3_rss.c
|
|
@@ -771,7 +771,7 @@ hns3_dev_rss_hash_conf_get(struct rte_eth_dev *dev,
|
|
{
|
|
struct hns3_adapter *hns = dev->data->dev_private;
|
|
struct hns3_hw *hw = &hns->hw;
|
|
- uint8_t hash_algo;
|
|
+ uint8_t hash_algo = 0;
|
|
int ret;
|
|
|
|
rte_spinlock_lock(&hw->lock);
|
|
@@ -993,7 +993,7 @@ hns3_update_rss_algo_key(struct hns3_hw *hw, uint8_t hash_func,
|
|
{
|
|
uint8_t rss_key[HNS3_RSS_KEY_SIZE_MAX] = {0};
|
|
bool modify_key, modify_algo;
|
|
- uint8_t hash_algo;
|
|
+ uint8_t hash_algo = 0;
|
|
int ret;
|
|
|
|
modify_key = (key != NULL && key_len > 0);
|
|
--
|
|
2.23.0
|
|
|