gazelle/0127-revert-write-usleep.patch
wu-changsheng e417d29170 add muti nic and fix bugs
(cherry picked from commit 680f9fbf06160e2e9dda88d3b8238c53680ab899)
2022-11-14 14:06:01 +08:00

28 lines
784 B
Diff

From fb2c23cc1be1171a70f650d2de6c7dad7539d2db Mon Sep 17 00:00:00 2001
From: wu-changsheng <wuchangsheng2@huawei.com>
Date: Sat, 12 Nov 2022 16:58:10 +0800
Subject: [PATCH 13/20] revert write usleep
---
src/lstack/core/lstack_lwip.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/lstack/core/lstack_lwip.c b/src/lstack/core/lstack_lwip.c
index 0437187..087d09b 100644
--- a/src/lstack/core/lstack_lwip.c
+++ b/src/lstack/core/lstack_lwip.c
@@ -307,10 +307,6 @@ ssize_t write_stack_data(struct lwip_sock *sock, const void *buf, size_t len)
sock->wakeup->stat.app_write_cnt += send_pkt;
}
- if (send_len == 0) {
- /* 100: give up cpu to other threads, when send_ring is full */
- usleep(100);
- }
return send_len;
}
--
2.23.0