summaryrefslogtreecommitdiffstatsabout
path: root/SylixOS
diff options
context:
space:
mode:
authorHanhui <hanhui@acoinfo.com>2020-06-20 06:44:10 (GMT)
committer Hanhui <hanhui@acoinfo.com>2020-06-20 06:44:10 (GMT)
commit7faf80587e2eea4e2be006fa8778bf0d8245bebc (patch)
tree625a2a94f50c47bf7a4e301a3918d1fd8017ea2f /SylixOS
parentf4345e75920e10815cf6221bc9645fcef9637075 (diff)
downloadlibsylixos-7faf80587e2eea4e2be006fa8778bf0d8245bebc.zip
libsylixos-7faf80587e2eea4e2be006fa8778bf0d8245bebc.tar.gz
libsylixos-7faf80587e2eea4e2be006fa8778bf0d8245bebc.tar.bz2
Add ARP queue length configure in net configure.
Diffstat (limited to 'SylixOS')
-rw-r--r--SylixOS/config/net/net_cfg.h2
-rw-r--r--SylixOS/net/lwip/lwip_config.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/SylixOS/config/net/net_cfg.h b/SylixOS/config/net/net_cfg.h
index 8f9281a..c517dc8 100644
--- a/SylixOS/config/net/net_cfg.h
+++ b/SylixOS/config/net/net_cfg.h
@@ -122,6 +122,8 @@
#define LW_CFG_LWIP_ARP_TABLE_SIZE 127 /* 以太网接口 ARP 表大小 */
#endif /* LW_CFG_NET_ROUTER > 0 */
+#define LW_CFG_LWIP_ARP_QUEUE_LEN 64 /* 网络接口 APR 缓存队列长度 */
+
/*********************************************************************************************************
AF_UNIX 配置
*********************************************************************************************************/
diff --git a/SylixOS/net/lwip/lwip_config.h b/SylixOS/net/lwip/lwip_config.h
index 0691ceb..f7cefb3 100644
--- a/SylixOS/net/lwip/lwip_config.h
+++ b/SylixOS/net/lwip/lwip_config.h
@@ -480,7 +480,7 @@ extern INT __inetHostTableGetItem(CPCHAR pcHost, size_t stLen, PVOID pvAddr,
#define LWIP_ARP 1
#define ARP_QUEUEING 1
-#define ARP_QUEUE_LEN 10 /* 每个查询可缓存 10 个数据包 */
+#define ARP_QUEUE_LEN LW_CFG_LWIP_ARP_QUEUE_LEN /* 每个查询可缓存数据包个数 */
#define ARP_TABLE_SIZE LW_CFG_LWIP_ARP_TABLE_SIZE
#define ETHARP_SUPPORT_VLAN 1 /* IEEE 802.1q VLAN */