Re: Packet corruption in re0

From: Pyun YongHyeon <pyunyh_at_gmail.com>
Date: Fri, 28 Mar 2008 15:43:52 +0900
On Thu, Mar 27, 2008 at 10:47:51PM -0700, Abdullah Ibn Hamad Al-Marri wrote:

[...]

 > >  > 
 > >  > Pyun,
 > >  > 
 > >  > I used it, and I got no bufer space available message, I run a server with 
 > > heavey http requests and named as we..
 > >  > 
 > >  > so I had to increase the buffer.
 > >  > 
 > > 
 > > Please try re(4) in HEAD.
 > > I've just committed one important fix to PCIe variants of RealTek
 > > chip. I guess re(4) in HEAD shall fix all known issues reported.
 > 
 >  
 > > I'll MFC re(4) changes in a week.
 > > 
 > > -- 
 > > Regards,
 > > Pyun YongHyeon
 > > 
 > 
 > Hello Pyun,
 > 
 > I did fetch if_rlreg.h and if_re.c from HEAD, but it didn't compile in RELENG_7.
 > 
 > machine -> /usr/src/sys/amd64/include
 > rm -f .depend
 > mkdep -f .depend -a   -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I_at_ -I_at_/contrib/altq -I/usr/obj/usr/src/sys/ARABPE /usr/src/sys/modules/mfi/mfi_linux/../../../dev/mfi/mfi_linux.c
 > ===> mii (depend)
 > _at_ -> /usr/src/sys
 > machine -> /usr/src/sys/amd64/include
 > awk -f _at_/tools/makeobjops.awk _at_/dev/mii/miibus_if.m -c
 > awk -f _at_/tools/makeobjops.awk _at_/dev/pci/pci_if.m -h
 > awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
 > awk -f _at_/tools/miidevs2h.awk _at_/dev/mii/miidevs
 > awk -f _at_/tools/makeobjops.awk _at_/dev/mii/miibus_if.m -h
 > awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
 > rm -f .depend
 > mkdep -f .depend -a   -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I_at_ -I_at_/contrib/altq -I/usr/obj/usr/src/sys/ARABPE /usr/src/sys/modules/mii/../../dev/mii/acphy.c /usr/src/sys/modules/mii/../../dev/mii/amphy.c /usr/src/sys/modules/mii/../../dev/mii/bmtphy.c /usr/src/sys/modules/mii/../../dev/mii/brgphy.c /usr/src/sys/modules/mii/../../dev/mii/ciphy.c /usr/src/sys/modules/mii/../../dev/mii/e1000phy.c /usr/src/sys/modules/mii/../../dev/mii/exphy.c /usr/src/sys/modules/mii/../../dev/mii/gentbi.c /usr/src/sys/modules/mii/../../dev/mii/icsphy.c /usr/src/sys/modules/mii/../../dev/mii/inphy.c /usr/src/sys/modules/mii/../../dev/mii/ip1000phy.c /usr/src/sys/modules/mii/../../dev/mii/lxtphy.c miibus_if.c /usr/src/sys/modules/mii/../../dev/mii/mii.c /usr/src/sys/modules/mii/../../dev/mii/mii_physubr.c /usr/src/sys/modules/mii/../../dev/mii/mlphy.c /usr/src/sys/modules/mii/../../dev/mii/nsgphy.c /usr/src/sys/modules/mii/../../dev/mii/nsphy.c
 >  /usr/src/sys/modules/mii/../../dev/mii/nsphyter.c /usr/src/sys/modules/mii/../../dev/mii/pnaphy.c /usr/src/sys/modules/mii/../../dev/mii/qsphy.c /usr/src/sys/modules/mii/../../dev/mii/rgephy.c /usr/src/sys/modules/mii/../../dev/mii/rlphy.c /usr/src/sys/modules/mii/../../dev/mii/ruephy.c /usr/src/sys/modules/mii/../../dev/mii/tdkphy.c /usr/src/sys/modules/mii/../../dev/mii/tlphy.c /usr/src/sys/modules/mii/../../dev/mii/ukphy.c /usr/src/sys/modules/mii/../../dev/mii/ukphy_subr.c /usr/src/sys/modules/mii/../../dev/mii/xmphy.c
 > In file included from /usr/src/sys/modules/mii/../../dev/mii/rgephy.c:60:
 > _at_/pci/if_rlreg.h:654:28: error: token ";" is not valid in preprocessor expressions
 > _at_/pci/if_rlreg.h:1062:6: error: unterminated comment
 > _at_/pci/if_rlreg.h:654:1: error: unterminated #if
 > In file included from /usr/src/sys/modules/mii/../../dev/mii/rlphy.c:56:
 > _at_/pci/if_rlreg.h:654:28: error: token ";" is not valid in preprocessor expressions
 > _at_/pci/if_rlreg.h:1062:6: error: unterminated comment
 > _at_/pci/if_rlreg.h:654:1: error: unterminated #if
 > mkdep: compile failed
 > *** Error code 1
 > 1 error
 > *** Error code 2
 > 1 error
 > *** Error code 2
 > 2 errors
 > *** Error code 2
 > 1 error
 > *** Error code 2
 > 1 error
 > 
 > 
 > 
 > Could you please help with a patch could be applied in RELENG_7? This is urgent issue.
 > 

The files in the following URL are the same one in HEAD except
addition of minor glude code to build it on RELENG_7.

http://people.freebsd.org/~yongari/re/if_re.c
http://people.freebsd.org/~yongari/re/if_rlreg.h

-- 
Regards,
Pyun YongHyeon
Received on Fri Mar 28 2008 - 05:44:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC