This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

lwIP Ethernet examples definition constant values

Hi,

I have a question relating the definition constants in the Ethernet examples of StarterWare for AM335x (V2.00.01.01).
The examples define the following values:

- TCP_MSS (in lwipopts.h): 1500
- MAX_TRANSFER_UNITS (in cpswif.c): 1500
- MIN_PKT_LEN (in cpswif.c): 60
- PBUF_LEN_MAX (in cpswif): 1520
- PBUF_POOL_BUFSIZE (in lwipopts.h): 1520

I'm wondering how this values evolved. I'm fine with the following values:

- MAX_TRANSFER_UNITS (in cpswif.c): 1500
- MIN_PKT_LEN (in cpswif.c): 60

For standard Ethernet (IP V4) I see the following values:

- TCP_MSS (in lwipopts.h): 1460 (as lwIP WIKI suggest for Ethernet)
- PBUF_POOL_BUFSIZE (in lwipopts.h): 1514 or 1518 (VLAN) (1518 or 1522, if FCS is part of the data)
- PBUF_LEN_MAX (in cpswif): same as PBUF_POOL_BUFSIZE

If FCS is part of the received data from CPSW module is an other open question in this forum.

Any ideas from TI side for this values? Why did TI choose PBUF_LEN_MAX with 1520? Why did TI choose TCP_MSS with 1500?

Thanks and best regards,
Patrick