>Can any one tell me which configuration (1st or 2nd) is correct one or
none of these?
>Please suggest any good document for reference to understand the
configurations for lwip.

It's dependent on used hardware. But I would consider the comment above
each define.
MEM_SIZE of (7 * 1024) or (8 * 1024) wouldn't produce a big difference.

#define PBUF_POOL_BUFSIZE 256 <- It's a bit small value, usually it's
should be about several KB e.g. 2048 or 4096 etc.
#define PBUF_POOL_SIZE   ((TCP_WND + TCP_SND_BUF) / PBUF_POOL_BUFSIZE)
<- would results in 40 buffers. Do you really need this count?

/* MEM_SIZE: the size of the heap memory. If the application will send a
lot of data that needs to be copied, this should be set high. */
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */



_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to