Subject: Re: RTL8169 hw IP4CSUM_Tx workaround
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 10/26/2006 09:36:39
On Thu, Oct 26, 2006 at 11:51:57AM +0900, YAMAMOTO Takashi wrote:
> > +/*
> > + * This function is just taken and modified from bge(4) driver.
> > + *
> > + * Although re(4) chips support auto-padding small packets,
> > + * but it seems to cause a bug on IPv4 hardware checksum offload.
> > + * To avoid the bug, pad packets manually if ip4csum is enabled.
> > + */
> 
> i'm not sure if it's a good idea to allocate a mbuf for this purpose.
> an alternative would be to set up a dummy descriptor which
> points (system-global?) zero'ed memory.

This is how it's done in tl(4)

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--