Re: [SOLVED] re(4) incorrect checksum
On Thu, Jan 11, 2007 at 05:34:19PM +0100, Pietro Cerutti wrote: On 1/11/07, Pyun YongHyeon [EMAIL PROTECTED] wrote: In if_re.c, rev 1.46.2.18 wpaul@ fixed a long standing checksum offload issue by padding. Does re(4) work when you disable only Tx checksum offload?(i.e. ifconfig re0 -txcsum) yes, because -txcsum also disables Rx checksum on my NIC. # ifconfig re0 options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING # ifconfig re0 -txcsum options=18VLAN_MTU,VLAN_HWTAGGING How about attached one? Please make sure to test 'ping -s 1473 ipaddr_of_gateway'. -- Regards, Pyun YongHyeon Index: if_rlreg.h === RCS file: /home/ncvs/src/sys/pci/if_rlreg.h,v retrieving revision 1.64 diff -u -r1.64 if_rlreg.h --- if_rlreg.h 16 Jan 2007 20:35:23 - 1.64 +++ if_rlreg.h 20 Jan 2007 05:05:21 - @@ -443,7 +443,12 @@ #define RL_RX_BUF_SZ RL_RXBUF_64 #define RL_RXBUFLEN(1 ((RL_RX_BUF_SZ 11) + 13)) #define RL_TX_LIST_CNT 4 -#define RL_MIN_FRAMELEN60 +/* + * re(4) hardware IPv4 Tx checksum offload could be mangled with 28 bytes + * or less IP packets. + */ +#define RL_TXCSUM_MINLEN 28 +#define RL_MIN_FRAMELEN(ETHER_HDR_LEN + RL_TXCSUM_MINLEN) #define RL_TXTHRESH(x) ((x) 11) #define RL_TX_THRESH_INIT 96 #define RL_RX_FIFOTHRESH RL_RXFIFO_NOTHRESH ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[SOLVED] re(4) incorrect checksum
Hi lists, ifconfig re0 -txcsum -rxcsum solved the problem Anyway, is this a bug in the driver or in the interface itself? Thanx, regards -- Forwarded message -- From: Pietro Cerutti [EMAIL PROTECTED] Date: Jan 11, 2007 11:29 AM Subject: re(4) incorrect checksum To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Hi lists, FreeBSD gahrtop.localhost 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Tue Jan 9 19:34:13 CET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GAHRTOP i386 CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (2000.15-MHz 686-class CPU) Cores per package: 2 re0: RealTek 8168B/8111B PCIe Gigabit Ethernet port 0xc800-0xc8ff mem 0xff2ff000-0xff2f irq 17 at device 0.0 on pci2 ($FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.20 2006/09/21 11:08:28 yongari Exp $) I get checksum errors on every packet I send, example: Checksum: 0x0bc5 [incorrect, should be 0x78fe (maybe caused by checksum offloading?)] I think this could be the cause of some web pages (e.g. Gmail in standard view [html view works well]) not to be displayed. I tracked down the problem to the re(4) driver just because wlan works good... Any ideas? Thanx, -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
re(4) incorrect checksum
Hi lists, FreeBSD gahrtop.localhost 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Tue Jan 9 19:34:13 CET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GAHRTOP i386 CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (2000.15-MHz 686-class CPU) Cores per package: 2 re0: RealTek 8168B/8111B PCIe Gigabit Ethernet port 0xc800-0xc8ff mem 0xff2ff000-0xff2f irq 17 at device 0.0 on pci2 ($FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.20 2006/09/21 11:08:28 yongari Exp $) I get checksum errors on every packet I send, example: Checksum: 0x0bc5 [incorrect, should be 0x78fe (maybe caused by checksum offloading?)] I think this could be the cause of some web pages (e.g. Gmail in standard view [html view works well]) not to be displayed. I tracked down the problem to the re(4) driver just because wlan works good... Any ideas? Thanx, -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Fwd: [SOLVED] re(4) incorrect checksum
On 1/11/07, Bernd Walter [EMAIL PROTECTED] wrote: On Thu, Jan 11, 2007 at 11:51:51AM +0100, Pietro Cerutti wrote: Hi lists, ifconfig re0 -txcsum -rxcsum solved the problem Anyway, is this a bug in the driver or in the interface itself? That is how checksum offloading works. tcpdump can't see a correct checksum, because it is not calculated by the kernel and left for the hardware. Yes, I got it. However checksum offloading is broken for re(4) based cards, therefor it is disabled by default. I don't think so at least, I did nothing to enable it, but it were indeed enabled (RXCSUM,TXCSU showed up in the options field shown by ifconfig) -- B.Walterhttp://www.bwct.de http://www.fizon.de [EMAIL PROTECTED] [EMAIL PROTECTED][EMAIL PROTECTED] -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [SOLVED] re(4) incorrect checksum
On Thu, Jan 11, 2007 at 11:51:51AM +0100, Pietro Cerutti wrote: Hi lists, ifconfig re0 -txcsum -rxcsum solved the problem Anyway, is this a bug in the driver or in the interface itself? That is how checksum offloading works. tcpdump can't see a correct checksum, because it is not calculated by the kernel and left for the hardware. However checksum offloading is broken for re(4) based cards, therefor it is disabled by default. -- B.Walterhttp://www.bwct.de http://www.fizon.de [EMAIL PROTECTED] [EMAIL PROTECTED][EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [SOLVED] re(4) incorrect checksum
On Thu, Jan 11, 2007 at 11:51:51AM +0100, Pietro Cerutti wrote: Hi lists, ifconfig re0 -txcsum -rxcsum solved the problem In if_re.c, rev 1.46.2.18 wpaul@ fixed a long standing checksum offload issue by padding. Does re(4) work when you disable only Tx checksum offload?(i.e. ifconfig re0 -txcsum) Anyway, is this a bug in the driver or in the interface itself? Thanx, regards -- Forwarded message -- From: Pietro Cerutti [EMAIL PROTECTED] Date: Jan 11, 2007 11:29 AM Subject: re(4) incorrect checksum To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Hi lists, FreeBSD gahrtop.localhost 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Tue Jan 9 19:34:13 CET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GAHRTOP i386 CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (2000.15-MHz 686-class CPU) Cores per package: 2 re0: RealTek 8168B/8111B PCIe Gigabit Ethernet port 0xc800-0xc8ff mem 0xff2ff000-0xff2f irq 17 at device 0.0 on pci2 ($FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.20 2006/09/21 11:08:28 yongari Exp $) I get checksum errors on every packet I send, example: Checksum: 0x0bc5 [incorrect, should be 0x78fe (maybe caused by checksum offloading?)] I think this could be the cause of some web pages (e.g. Gmail in standard view [html view works well]) not to be displayed. I tracked down the problem to the re(4) driver just because wlan works good... Any ideas? Thanx, -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] -- Regards, Pyun YongHyeon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [SOLVED] re(4) incorrect checksum
On 1/11/07, Pyun YongHyeon [EMAIL PROTECTED] wrote: In if_re.c, rev 1.46.2.18 wpaul@ fixed a long standing checksum offload issue by padding. Does re(4) work when you disable only Tx checksum offload?(i.e. ifconfig re0 -txcsum) yes, because -txcsum also disables Rx checksum on my NIC. # ifconfig re0 options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING # ifconfig re0 -txcsum options=18VLAN_MTU,VLAN_HWTAGGING -- Regards, Pyun YongHyeon -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]