|
From: | address@hidden |
Subject: | Re: [lwip-users] Ethernet - all packets over 32 dropped |
Date: | Mon, 19 Oct 2009 21:24:18 +0200 |
User-agent: | Thunderbird 2.0.0.23 (Macintosh/20090812) |
bobbyb wrote:
I knew what iperf is, but I didn't know it was ported to lwIP (and escpecially the raw API).Iperf is a common application used for testing network bandwidth (http://en.wikipedia.org/wiki/Iperf for more details). xapp1026 provides a utxperf which allows you to setup an iperf server which basically just spams packets as fast as it can to determine maximum bandwidth. This application works fine for me.
Although that might not have anything to do with your problem, using PBUF_POOL for TX is not a good idea: at least with TCP, you risk deadlocks when running out of pbufs as incoming ACK segments can not be received to free allocated pbufs (if the pool is empty).I am using the raw api with my pbufs setup just as in the iperf example - pbuf_alloc(PBUF_RAW, SEND_BUFSIZE, PBUF_POOL).
Try using pbuf_alloc(PBUF_RAW, SEND_BUFSIZE, PBUF_RAM) instead. Oh, and you didn't say if it sends 32 bytes of data or 32 bytes total.The pbuf_pool_size is set to 256 and the pbuf_pool_bufsize is set to 1600. I am using lwip v1.3 which i believe is equivalent to lwip v3.0 with some xilinx specific changes. This is the exact setup i use to run iperf too which is why i'm very confused.
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |