Skip to content

Commit

Permalink
ports/psoc6: Modified lwip opts file.
Browse files Browse the repository at this point in the history
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
  • Loading branch information
IFX-Anusha committed Sep 25, 2024
1 parent 32b8101 commit 8b81493
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ports/psoc6/lwip_inc/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define MEM_ALIGNMENT (4)

#define LWIP_RAW (1)

#define NO_SYS 0

//
// Enable IPV4 networking
Expand Down Expand Up @@ -147,8 +147,10 @@
* TCP_SND_BUF: TCP sender buffer space (bytes).
* To achieve good performance, this should be at least 2 * TCP_MSS.
*/
#define TCP_SND_BUF (8 * TCP_MSS)

#define TCP_SND_BUF (12 * TCP_MSS)
#define TCP_WND (10 * TCP_MSS)
#define LWIP_WND_SCALE 1
#define TCP_RCV_SCALE 2
/**
* TCP_SND_QUEUELEN: TCP sender buffer space (pbufs). This must be at least
* as much as (2 * TCP_SND_BUF/TCP_MSS) for things to work.
Expand Down Expand Up @@ -178,7 +180,7 @@
#define DEFAULT_RAW_RECVMBOX_SIZE (12)
#define DEFAULT_UDP_RECVMBOX_SIZE (12)
#define DEFAULT_ACCEPTMBOX_SIZE (8)

#define TCP_OVERSIZE TCP_MSS
/**
* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
* per active UDP "connection".
Expand Down Expand Up @@ -212,7 +214,7 @@
/**
* PBUF_POOL_SIZE: the number of buffers in the pbuf pool.
*/
#define PBUF_POOL_SIZE 24
#define PBUF_POOL_SIZE 400

/**
* MEMP_NUM_NETBUF: the number of struct netbufs.
Expand Down Expand Up @@ -259,6 +261,8 @@
*/
#define LWIP_NETIF_API 1

// #define TCP_LISTEN_BACKLOG 1

#define LWIP_DNS (1)

#define LWIP_NETIF_TX_SINGLE_PBUF (0)
Expand Down

0 comments on commit 8b81493

Please sign in to comment.