improved TSO interface needed
kip.macy at gmail.com
Sun Feb 25 14:41:58 UTC 2007
On 2/25/07, Andre Oppermann <andre at freebsd.org> wrote:
> Kip Macy wrote:
> > Evidently FreeBSD violates the LSO spec by sending down up to socket
> > buffer sized TSO segments to the network card. Is there a way to set
> > this other than reducing net.inet.tcp.sendbuf_max to a compliant value
> > (64k)? And is there a way to for a device to communicate to the stack
> > the maximum length of an mbuf chain?
> From netinet/ip_output.c:
> * When doing TSO limit a burst to TCP_MAXWIN minus the
> * IP, TCP and Options length to keep ip->ip_len from
> * overflowing. Prevent the last segment from being
> * fractional thus making them all equal sized and set
> * the flag to continue sending.
> TCP_MAXWIN is 64K.
It is good to know that this how it is supposed to work even if it
doesn't. You didn't directly answer my last question, since they're
all supposed to be equal does that mean the max should be 32?
More information about the freebsd-net