lwip/0123-opts-modify-MEMP_NUM_UDP_PCB.patch
yinbin6 1a8b545caa opts: modify MEMP_NUM_UDP_PCB
(cherry picked from commit 4e15aea3ad871da35b49f20b4953f94f353a383f)
2024-04-21 15:06:01 +08:00

23 lines
576 B
Diff

From 226fbb87dcf266d165962f1d87f9c4c5d4ea8e2d Mon Sep 17 00:00:00 2001
From: yinbin6 <yinbin8@huawei.com>
Date: Thu, 11 Apr 2024 15:07:47 +0800
Subject: [PATCH] opts: modify MEMP_NUM_UDP_PCB
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index 62573f5..4655388 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -192,7 +192,7 @@
#define UDP_HLEN 8
-#define MEMP_NUM_UDP_PCB 16
+#define MEMP_NUM_UDP_PCB (GAZELLE_MAX_CLIENTS + GAZELLE_RESERVED_CLIENTS)
#define MEMP_NUM_IGMP_GROUP 16
#define DEFAULT_UDP_RECVMBOX_SIZE 4096
--
2.33.0