126 Star 3 Fork 18

src-openEuler/libwd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0030-uadk-sched-fix-async-mode-ctx-id.patch 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
JangShui Yang 提交于 2024-04-07 18:05 . libwd: update the source code
From 6ab956dc04c04849d2650e08d59b9722522eb201 Mon Sep 17 00:00:00 2001
From: Weili Qian <qianweili@huawei.com>
Date: Sat, 23 Mar 2024 17:56:17 +0800
Subject: [PATCH 30/44] uadk/sched: fix async mode ctx id
In the single scheduler scenario, ctx id 1 is asynchronous ctx,
but the function sched_single_poll_policy() uses ctx id 0.
As a result, packets fail to be received. Change the value of
ctx id to 1.
Signed-off-by: Weili Qian <qianweili@huawei.com>
---
wd_sched.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wd_sched.c b/wd_sched.c
index b43834d..6766872 100644
--- a/wd_sched.c
+++ b/wd_sched.c
@@ -428,9 +428,9 @@ static int sched_single_poll_policy(handle_t h_sched_ctx,
}
while (loop_times > 0) {
- /* Default async mode use ctx 0 */
+ /* Default async mode use ctx 1 */
loop_times--;
- ret = sched_ctx->poll_func(0, 1, &poll_num);
+ ret = sched_ctx->poll_func(1, 1, &poll_num);
if ((ret < 0) && (ret != -EAGAIN))
return ret;
else if (ret == -EAGAIN)
--
2.25.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libwd.git
git@gitee.com:src-openeuler/libwd.git
src-openeuler
libwd
libwd
master

搜索帮助