gazelle/0243-fix-change-low-power-mod-invalid.patch
jiangheng12 33191b4ca7 sync fix udp send/recv in muliple queue
(cherry picked from commit 4c7e0be288de0380c0b864585acc09b689c1b40f)
2023-06-14 14:45:59 +08:00

34 lines
1.1 KiB
Diff

From c74be141f7c2f30a5b53c1920f4b1860e4fb3138 Mon Sep 17 00:00:00 2001
From: jiangheng12 <jiangheng14@huawei.com>
Date: Wed, 31 May 2023 16:26:24 +0800
Subject: [PATCH] fix change low power mod invalid
---
src/lstack/core/lstack_protocol_stack.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lstack/core/lstack_protocol_stack.c b/src/lstack/core/lstack_protocol_stack.c
index 2fbe3eb..ce1c6de 100644
--- a/src/lstack/core/lstack_protocol_stack.c
+++ b/src/lstack/core/lstack_protocol_stack.c
@@ -434,7 +434,6 @@ static void* gazelle_stack_thread(void *arg)
uint32_t read_connect_number = cfg->read_connect_number;
uint32_t rpc_number = cfg->rpc_number;
uint32_t nic_read_number = cfg->nic_read_number;
- uint16_t low_power_mod = cfg->low_power_mod;
uint32_t wakeup_tick = 0;
struct protocol_stack_group *stack_group = get_protocol_stack_group();
@@ -484,7 +483,7 @@ static void* gazelle_stack_thread(void *arg)
sys_timer_run();
- if (low_power_mod != 0) {
+ if (cfg->low_power_mod != 0) {
low_power_idling(stack);
}
}
--
2.23.0