Subject: Re: Problem with sip(4) truncating full-sized frames when used with vlan(4)
To: Pavel Cahyna <email@example.com>
From: Bill Studenmund <firstname.lastname@example.org>
Date: 03/11/2006 21:27:05
Content-Type: text/plain; charset=us-ascii
On Sun, Mar 05, 2006 at 12:05:02PM +0100, Pavel Cahyna wrote:
> On Sun, Mar 05, 2006 at 07:37:02AM +0100, Nino Dehne wrote:
> > Hi,
> > could somebody please look into the problem I described in kern/32900?
> > It bit me again recently. I now have to set the MTU on _every_ box on t=
> > segment to 1496 or else I get weird behaviour like full-sized HTTP POSTs
> > not working while normal browsing works.
> > I can almost definitely say that sip(4) used to work with vlan(4) and I
> > never had problems under 3.0.
> There was one change to this driver which could be related. Try reverting
> it with this patch:
> @@ -1899,8 +1899,8 @@
> m->m_len -=3D ETHER_CRC_LEN;
> *sc->sc_rxtailp =3D NULL;
> - len =3D m->m_len + sc->sc_rxlen;
> m =3D sc->sc_rxhead;
> + len =3D m->m_len + sc->sc_rxlen;
If you do that, you'll never have jumbo frames work. That bug fixes an=20
issue which was in a number of NIC drivers (probalby copied around) and=20
made all jumbo frames die.
Note how in one variant, m->m_len is the length of the last mbuf in the
chain in a jumbo chain, while in the other it is the length of the first
mbuf in the chain. Note further that the first mbuf's length is already in
sc->sc_rxlen. Thus one version will add the first mbuf twice and never add
the length of the last mbuf in the chain.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
-----END PGP SIGNATURE-----