Sync some patchs from upstreaming for hns3 pmd and modifications are as follow: - dma/hisilicon: remove support for HIP09 platform - net/hns3: disable SCTP verification tag for RSS hash input - net/hns3: fix variable overflow - net/hns3: fix double free for Rx/Tx queue - net/hns3: fix read Rx timestamp handle - net/hns3: fix offload flag of IEEE 1588 In addition, the following patch synchronizes the latest version - ethdev: fix strict aliasing lead to link cannot be up Signed-off-by: Dengdui Huang <huangdengdui@huawei.com> (cherry picked from commit 60fad33c2a49d948d5816889cb40f0184f826149)
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 262dd61124d4fe105af5d36e2a01f7ed6865aa48 Mon Sep 17 00:00:00 2001
|
|
From: Dengdui Huang <huangdengdui@huawei.com>
|
|
Date: Wed, 3 Apr 2024 18:16:22 +0800
|
|
Subject: [PATCH 40/42] net/hns3: fix variable overflow
|
|
|
|
[ upstream commit 861bfb275cb4aea37253c3171f922a0131afb1a3 ]
|
|
|
|
The function strtoul() returns an unsigned long, which should
|
|
be received using the variable uint64_t.
|
|
|
|
Fixes: 2fc3e696a7f1 ("net/hns3: add runtime config for mailbox limit time")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
|
|
Signed-off-by: Jie Hai <haijie1@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_common.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c
|
|
index 28c26b0..5e6cdfd 100644
|
|
--- a/drivers/net/hns3/hns3_common.c
|
|
+++ b/drivers/net/hns3/hns3_common.c
|
|
@@ -224,7 +224,7 @@ hns3_parse_dev_caps_mask(const char *key, const char *value, void *extra_args)
|
|
static int
|
|
hns3_parse_mbx_time_limit(const char *key, const char *value, void *extra_args)
|
|
{
|
|
- uint32_t val;
|
|
+ uint64_t val;
|
|
|
|
RTE_SET_USED(key);
|
|
|
|
--
|
|
2.33.0
|
|
|