lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Need Help for "Configuration for lwIP"


From: Funk, Artur
Subject: Re: [lwip-users] Need Help for "Configuration for lwIP"
Date: Wed, 13 Jun 2012 08:42:55 +0200

>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. */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]