Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2004 15:29:34 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        freebsd-net@freebsd.org
Subject:   tcp mss MCLBYTES restriction
Message-ID:  <16397.36782.415899.626311@grasshopper.cs.duke.edu>

next in thread | raw e-mail | index | archive | help

For the case where the mtu is larger than MCLBYTES (2048), FreeBSD's
TCP implementation restricts the mss to a multiple of MCLBYTES.  This
appears to have been inherited from 4.4BSD-lite.

On adapters with 9000 byte jumbo frames, this limits the mss to 8192
bytes, and wastes nearly 1KB out of each frame.  This is especially
annoying because many drivers for adapters which support 9000 byte mtus
allocate their own 9000 byte receive buffers and don't even use mbufs
which are MCLBYTES in length.  In this case, the mss restriction guarantees
a nearly 1000 byte wastage per frame.

Would it be OK if I made this code optional via a sysctl?

Drew




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16397.36782.415899.626311>