Subject: Re: CVS commit: src/sys/netinet
To: Matt Thomas <matt@3am-software.com>
From: Charles M. Hannum <abuse@spamalicious.com>
List: tech-net
Date: 03/11/2005 18:52:11
On Friday 11 March 2005 18:48, Matt Thomas wrote:
> On Mar 11, 2005, at 9:19 AM, YAMAMOTO Takashi wrote:
> > although it has another problem; IP_MAXPACKET, which is used to limit
> > largesend size, seems too large for rtl8169, which has only 64 tx
> > descriptor.
> > i guess we need something like NDIS_TASK_TCP_LARGE_SEND.
>
> After pondering this for awhile, I think the solution is even easier.
> If you can't fit it into your descriptors, split it up.  That's what
> the hardware would do.

I think you need to do this in the driver, because "TX descriptors" doesn't 
translate well to "socket buffer space".  You'd end up with some obscure 
formula that depends on implementation details of sosend().