From owner-cvs-all Thu Feb 27 9:24:10 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C54737B401; Thu, 27 Feb 2003 09:24:03 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69CA543F75; Thu, 27 Feb 2003 09:23:52 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h1RHNj917907; Thu, 27 Feb 2003 14:23:45 -0300 Message-ID: <3E5E49A1.9050507@tcoip.com.br> Date: Thu, 27 Feb 2003 14:23:45 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3b) Gecko/20030214 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Ruslan Ermilov Cc: Jonathan Lemon , Bill Paul , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/fxp if_fxp.c if_fxpreg.h if_fxpvar.h References: <200302262212.h1QMC4L8017995@repoman.freebsd.org> <3E5DFD83.4070605@tcoip.com.br> <20030227122441.GF39346@sunbay.com> <3E5E0EEC.9020203@tcoip.com.br> <3E5E1D66.6080801@tcoip.com.br> <20030227160017.GB88361@sunbay.com> In-Reply-To: <20030227160017.GB88361@sunbay.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ruslan Ermilov wrote: > On Thu, Feb 27, 2003 at 11:15:02AM -0300, Daniel C. Sobral wrote: > >>Daniel C. Sobral wrote: >> >>>Ruslan Ermilov wrote: >>> >>> >>>>On Thu, Feb 27, 2003 at 08:58:59AM -0300, Daniel C. Sobral wrote: >>>> >>>> >>>>>Bill Paul wrote: >>>>> >>>>> >>>>>>wpaul 2003/02/26 14:12:04 PST >>>>>> >>>>>>Modified files: >>>>>> sys/dev/fxp if_fxp.c if_fxpreg.h if_fxpvar.h Log: >>>>>>As previously threatened, add TCP/IP checksum offload support to >>>>>>the fxp driver. This is enabled only for the 82550/82551 chips >>>>>>(PCI revision code 12 or 13). RX and TX checksum offload are >>>>>>both supported. Transmit offload is limited to TCP and UDP only >>>>>>right now: there seems to be a problem with IP header checksumming >>>>>>on transmit in some cases. >>>>> >>>>> >>>>>I'm curious. Is there any way of knowing whether support has been >>>>>detected and is in use? I did the pciconf trick you mentioned, but... >>>>> >>>>> >>>>ifconfig(8) will tell you: >>>> >>>>xl0: flags=8802 mtu 1500 >>>> options=3 >>>> ether 00:50:da:b4:10:5b >>>> media: Ethernet autoselect (none) >>>> status: no carrier >>>> >>>>"ifconfig -m" will tell you the list of supported capabilities. >>>> >>>> >>>> >>>>>Alas, when you say revision code 12 or 13... is that hex or decimal? >>>>>pciconf shows some of mine as being 0d. >>>>> >>>> >>>>0d == 13. :-) >>> >>> >>>Unless Bill Paul meant 13 as being 0x13 == 19. He mentions pciconf, >>>which shows just "0d", and would show just "13" for 0x13, so I'm still >>>unsure. Well, I'll have a new kernel soon on my 5.x testbox, and check >>>this out. Thanks for the ifconfig reply. >> >>So... how does one turn it on? >> > > Will you be surprised to know that ifconfig(8) does this? ;-) I would: root@piratinga:/usr/src/sbin/ifconfig# ifconfig -m fxp2 fxp2: flags=8843 mtu 1500 options=8 capability list: =b ether 00:02:b3:8f:30:41 media: Ethernet autoselect (100baseTX ) status: active supported media: media autoselect media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP media none media 100baseTX mediaopt hw-loopback root@piratinga:/usr/src/sbin/ifconfig# ifconfig fxp2 rxcsum root@piratinga:/usr/src/sbin/ifconfig# ifconfig fxp2 txcsum root@piratinga:/usr/src/sbin/ifconfig# ifconfig -m fxp2 fxp2: flags=8843 mtu 1500 options=8 capability list: =b ether 00:02:b3:8f:30:41 media: Ethernet autoselect (100baseTX ) status: active supported media: media autoselect media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP media none media 100baseTX mediaopt hw-loopback root@piratinga:/usr/src/sbin/ifconfig# > Jonathan forgot to document the "rxcsum", "txcsum", and > "netcons" capabilities in the ifconfig(8) manpage. Honestly, I thought this would have been configured with mediaopt. At any rate, it doesn't work. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net "I stopped believing in Santa Claus when I was six. Mother took me to see him in a department store and he asked for my autograph." -- Shirley Temple To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message