[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Sending large packets
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] Sending large packets |
Date: |
Thu, 09 Aug 2007 18:03:52 +0100 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070530) |
Goldschmidt Simon wrote:
Scatter-gather at driver level? I thought that's mandatory (at least for
TCP)!
It isn't. TCP has no relationship to the presence of scatter gather. Not
even socket APIs (despite any presence of readv()/writev()). Certainly s-g
exists in high-end and some mid-range ethernet MAC chips, but cheap,
cheerful and popular MACs like CS8900a don't support it.
As to your problem, Julian, it might help to increase the limiting
defines as it seems that TCP is somehow limited and can't fill pbufs up
to MTU size at all times. So you should check the configured TCP window
and TCP_SNDQUEUELEN (or what it's named, that's the count of pbufs
simultaneously being enqueued). TCP slow start might also limit the
segment size on connection start.
I'm not sure Joolz said it was at connection start.
Joolz, as well as what Simon and Kieran have said, I think you need to look
at a packet trace (with ethereal or tcpdump), so in particular you can see
what the receive window of the peer is at the point these packets are sent.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------ Opinions==mine