25 lines
785 B
Diff
25 lines
785 B
Diff
From 66b11c7916740615be6012938e82abd821a1b06e Mon Sep 17 00:00:00 2001
|
|
From: yinbin <yinbin8@huawei.com>
|
|
Date: Mon, 23 Sep 2024 20:17:10 +0800
|
|
Subject: [PATCH] LOG:add log when udp send_ring is exhausted
|
|
|
|
---
|
|
src/lstack/core/lstack_lwip.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/lstack/core/lstack_lwip.c b/src/lstack/core/lstack_lwip.c
|
|
index 636bbc7..a7b7202 100644
|
|
--- a/src/lstack/core/lstack_lwip.c
|
|
+++ b/src/lstack/core/lstack_lwip.c
|
|
@@ -497,6 +497,7 @@ static ssize_t do_lwip_udp_fill_sendring(struct lwip_sock *sock, const void *buf
|
|
}
|
|
|
|
if (write_avail < write_num) {
|
|
+ LSTACK_LOG(WARNING, LSTACK, "sock send_ring is already exhausted.\n");
|
|
sem_timedwait_nsecs(&sock->snd_ring_sem);
|
|
GAZELLE_RETURN(ENOMEM);
|
|
}
|
|
--
|
|
2.33.0
|
|
|