Hi Michael,

I faced similar problem with my driver. I am also having similar setup like 
yours NO_SYS=0 and netconn + socket APIs enabled.

I was not able to find a solution for the problem but one work around I did was 
to lower down the MSS to default value (536). Which resolved my problem. But I 
am also interested to know if this can be resolved.

I am using ENC28j60 SPI Ethernet controller.

Regards,
Ajay Bhargav 

Sent from Outlook Mail for Windows 10 phone


From: Kaufman, Michael
Sent: Sunday, January 31, 2016 2:07 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Delayed ACKs

Hi Sergio,

Thanks for the response. It seems I  need to do some digging. 
I indeed use NO_SYS=0 and sockets API and there is additional thread besides 
tcpip thread that collects the Ethernet frames and passes them to lwIP.

One question: what do you mean by "restrictions on threading"?

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
Sergio R. Caprile
Sent: Friday, January 29, 2016 2:42 PM
To: [email protected]
Subject: Re: [lwip-users] Delayed ACKs

Your problem seems to correlate to lost frames problems.
It is common for vendor provided "demos" to pull just one frame out of the 
Ethernet controller per int/poll, so they lose frames on high throughput.
You have:
- an application using an API
- the lwIP stack
- its port to your architecture (OS and micro)
- a driver for some Ethernet chip.
- some task getting frames out of the chip and putting them to lwIP

You should remove the unknown variables first. Consider running a known good 
application from the contrib tree, preferably for the same API you use. Then 
you can check your port and driver with your vendor.
Also make sure the stack has not been altered by the vendor, otherwise check 
with them.
There are restrictions on threading, and that depends on the API you use, and 
if you use NO_SYS=0 or =1. I can only help on RAW API and NO_SYS=1
                

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

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

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

Reply via email to