diff --git a/ports/psoc6/lwip_inc/lwipopts.h b/ports/psoc6/lwip_inc/lwipopts.h index 7a51407e8f019..1412e19c92fa4 100644 --- a/ports/psoc6/lwip_inc/lwipopts.h +++ b/ports/psoc6/lwip_inc/lwipopts.h @@ -37,6 +37,7 @@ #define LWIP_RAW (1) + // // Enable IPV4 networking // @@ -146,7 +147,7 @@ * TCP_SND_BUF: TCP sender buffer space (bytes). * To achieve good performance, this should be at least 2 * TCP_MSS. */ -#define TCP_SND_BUF (4 * TCP_MSS) +#define TCP_SND_BUF (8 * TCP_MSS) /** * TCP_SND_QUEUELEN: TCP sender buffer space (pbufs). This must be at least @@ -201,7 +202,7 @@ * MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. * (requires the LWIP_TCP option) */ -#define MEMP_NUM_TCP_SEG 27 +#define MEMP_NUM_TCP_SEG (2 * TCP_SND_QUEUELEN) /** * MEMP_NUM_SYS_TIMEOUT: the number of simultaneously active timeouts. @@ -260,7 +261,7 @@ #define LWIP_DNS (1) -#define LWIP_NETIF_TX_SINGLE_PBUF (1) +#define LWIP_NETIF_TX_SINGLE_PBUF (0) #define LWIP_RAND rand