lwip: modify according code review

1. Modify tcp window size/send buffer back to 4/2
2. Disable lwip statistics by default
This commit is contained in:
Liu Zhi Fu 2016-11-28 19:54:22 +08:00
parent 9a3f9af2db
commit fc2883a59a

View File

@ -465,7 +465,7 @@
/**
* LWIP_STATS==1: Enable statistics collection in lwip_stats.
*/
#define LWIP_STATS 1
#define LWIP_STATS 0
/*
---------------------------------
@ -555,28 +555,6 @@
*/
#define TCPIP_DEBUG LWIP_DBG_OFF
/**
* statistic debugs
*/
#define TCP_STATS LWIP_DBG_ON
#define UDP_STATS LWIP_DBG_ON
#define ICMP_STATS LWIP_DBG_ON
#define IGMP_STATS LWIP_DBG_ON
#define IP_STATS LWIP_DBG_ON
#define IPFRAG_STATS LWIP_DBG_ON
#define ETHARP_STATS LWIP_DBG_ON
#define LINK_STATS LWIP_DBG_ON
#define MEM_STATS LWIP_DBG_ON
#define MEMM_STATS LWIP_DBG_ON
#define SYS_STATS LWIP_DBG_ON
#define IP6_STATS LWIP_DBG_ON
#define IP6_FRAG_STATS LWIP_DBG_ON
#define ICMP6_STATS LWIP_DBG_ON
#define MLD6_STATS LWIP_DBG_ON
#define ND6_STATS LWIP_DBG_ON
#define MIB2_STATS LWIP_DBG_ON
#define ESP_STATS LWIP_DBG_ON
#define LWIP_STATS_DISPLAY LWIP_DBG_ON
/* Enable all Espressif-only options */
@ -596,8 +574,8 @@
#define ESP_CNT_DEBUG 0
#define ESP_DUAL_CORE 0
#define TCP_WND_DEFAULT (10*TCP_MSS)
#define TCP_SND_BUF_DEFAULT (5*TCP_MSS)
#define TCP_WND_DEFAULT (4*TCP_MSS)
#define TCP_SND_BUF_DEFAULT (2*TCP_MSS)
#if ESP_PER_SOC_TCP_WND
#define TCP_WND(pcb) (pcb->per_soc_tcp_wnd)