1 Star 0 Fork 76

chenyi/dpdk

forked from src-openEuler/dpdk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0040-net-hns3-fix-variable-overflow.patch 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
huangdengdui 提交于 2024-05-10 16:25 . sync some patch from upstreaming
From 262dd61124d4fe105af5d36e2a01f7ed6865aa48 Mon Sep 17 00:00:00 2001
From: Dengdui Huang <[email protected]>
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")
Signed-off-by: Dengdui Huang <[email protected]>
Signed-off-by: Jie Hai <[email protected]>
---
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenyi211/dpdk.git
[email protected]:chenyi211/dpdk.git
chenyi211
dpdk
dpdk
master

搜索帮助