gazelle/0256-LOG-add-log-when-udp-send_ring-is-exhausted.patch
jiangheng 0c50991d7d sync LOG:add log when udp send_ring is exhausted
(cherry picked from commit ccbc14d495c3ae1bd975de3132cdf690a5f99b3d)
2024-09-30 09:53:45 +08:00

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