em(4) patch

John-Mark Gurney gurney_j at resnet.uoregon.edu
Thu Apr 14 22:46:30 PDT 2005


Pyun YongHyeon wrote this message on Fri, Apr 15, 2005 at 14:11 +0900:
> On Fri, Apr 15, 2005 at 01:27:31PM +0900, To John-Mark Gurney wrote:
>  >  > >  > Also, I have work in progress to make non-aligned packets better...
>  >  > >  > I committed part of it as the m_copyup change...  On a -current, you
>  >  > >  > should just be able to apply the following change:
>  >  > >  > http://perforce.freebsd.org/fileDiffView.cgi?FSPC=//depot/user/jmg/arm/src/sys/netinet/ip%5finput.c&REV=3&ACT=edit
>  >  > >  > 
>  >  > > 
>  >  > > This looks promising. Some miserable hardwares that use sf(4)/rl(4)
>  >  > > driver could take advatnage of it. BTW what is IP_HDR_ALIGNED_P macro?
>  >  > 
>  >  > Look at:
>  >  > http://perforce.freebsd.org/fileDiffView.cgi?FSPC=//depot/user/jmg/arm/src/sys/netinet/ip%5fvar.h&REV=2&ACT=edit
>  >  > 
>  >  > and __NO_STRICT_ALIGNMENT should be defined somewhere for i386 and
>  > I'll try that. Thanks.
>  > 
> 
> With your changes JUMBO frames work here. This should also fix PR75794.
> It would be really great if your changes could be comitted.

I was working on trying to get some performance measurements by using
if_re...  But I haven't been able to get if_re to work on sparc64...

Though if em doesn't need realignment for normal frames, why do we need
them for jumbo?

Thanks for you help.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-sparc64 mailing list