summaryrefslogtreecommitdiffstatsabout
path: root/SylixOS
diff options
context:
space:
mode:
authorHanhui <hanhui@acoinfo.com>2020-06-20 07:27:07 (GMT)
committer Hanhui <hanhui@acoinfo.com>2020-06-20 07:27:07 (GMT)
commit03763932d3665eab36ed5f4d6a80e4f9b52fe133 (patch)
treee44e45874a61947ab276329f319c53c6e4b44f6f /SylixOS
parent7faf80587e2eea4e2be006fa8778bf0d8245bebc (diff)
downloadlibsylixos-03763932d3665eab36ed5f4d6a80e4f9b52fe133.zip
libsylixos-03763932d3665eab36ed5f4d6a80e4f9b52fe133.tar.gz
libsylixos-03763932d3665eab36ed5f4d6a80e4f9b52fe133.tar.bz2
Optimize IP fragment reference buffer configuration.
Diffstat (limited to 'SylixOS')
-rw-r--r--SylixOS/net/lwip/lwip_config.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/SylixOS/net/lwip/lwip_config.h b/SylixOS/net/lwip/lwip_config.h
index f7cefb3..e4cd249 100644
--- a/SylixOS/net/lwip/lwip_config.h
+++ b/SylixOS/net/lwip/lwip_config.h
@@ -114,6 +114,12 @@ extern PVOID lwip_platform_smemcpy(PVOID pvDest, CPVOID pvSrc, size_t stCoun
#define MEMP_NUM_REASSDATA 16
#endif /* MEM_SIZE >= ... */
+#if LW_CFG_LWIP_TX_SINGLE_PBUF > 0
+#define MEMP_NUM_FRAG_PBUF 16
+#else
+#define MEMP_NUM_FRAG_PBUF MEMP_NUM_REASSDATA /* !TX_SINGLE_PBUF Ƭ */
+#endif
+
/*********************************************************************************************************
Memory method
*********************************************************************************************************/
@@ -420,7 +426,7 @@ extern PVOID lwip_platform_smemcpy(PVOID pvDest, CPVOID pvSrc, size_t stCoun
#define LWIP_DNS LWIP_UDP
#ifndef MEMP_NUM_NETDB
-#define MEMP_NUM_NETDB 10
+#define MEMP_NUM_NETDB 12
#endif /* MEMP_NUM_NETDB */
#if LW_CFG_NET_IPV6 > 0