[lwip-users] Delay grows after consecutive sends

2018-03-12 Thread Brian dina
Hello,

I am using a Xilinx board with a Microblaze processor to run the
echo_server example code.  I noticed that if I send 8 bytes at one second
intervals that the delay from packets sent and packets received begins to
grow.  I don't feel like its a memory leak but have read online other
people run into the same issue, with different boards, but so far Xilinx
has not responded to mine or others who have had the same issue.  I feel
there must be something I'm missing in how the BSP sets the drivers for the
lwip.  Could anyone maybe guide me or tell me why there would be an
increasing delay.

Brian
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Testing lwIP with new driver

2018-03-12 Thread Sergio R. Caprile
Well, I wrote a driver some years ago, and did port to generic Cortex-M 
using CMSIS.
I wrote my driver as a generic piece of firmware and did all my tests 
there. All the stack stuff is responsibility of the stack maintainers 
(and they do quite a good job), so my responsibility is that my driver 
works as a driver...
DMA and zero-copy drivers have some interactions and are perhaps a 
different beast, my driver is a simple one and so it was relatively easy 
to exercise every portion of code with breakpoints, plugged to an old 
10Mbps hub to favor the microcontroller speed over the Ethernet 
controller on the tx side.
Once I was satisfied cleaning outstanding errors, I wrote a glue layer 
(simple inlines and macros) and made it a netif. Then I first tested for 
ping, then for echo and then simply speed stressed using netio.
The driver's job is to deliver the payload into Ethernet frames to lwIP, 
so as I see it there is no point in testing otherwise, since we can rest 
assured lwIP works.
RAW API applications can be first tested on a pc running lwIP there with 
some ports found in the contrib tree; but when starting on a new port, 
it is always preferable to use known-to-work applications, either from 
the app folders or the contrib tree. This way you can catch port errors.
Porting is trivial if you don't use an OS, and a little more involved if 
you do, but in most cases somebody else already did that. Sometimes 
manufacturers rush demos that barely work and even violate threading 
rules, so double check.


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Testing lwIP with new driver

2018-03-12 Thread cookies_do
Hello everyone. 

I would like to know if someone has experience with general lwIP  tests or
general lwIP + port to Renesas test. This would include stress tests for
UDP, TCP, ICMP (send all types of packets at the time or just one type of
packets, eg. just ICMP). 

I want to know if there exist some kind of tests when porting to new
platform (creating new driver for the controller) and if anyone has
experience to share with us.

Thanks in advance.



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users