From owner-freebsd-current Fri Jun 1 14:56: 1 2001 Delivered-To: freebsd-current@freebsd.org Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by hub.freebsd.org (Postfix) with ESMTP id ABA2A37B422 for ; Fri, 1 Jun 2001 14:55:56 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.128.214.Dial1.SanJose1.Level3.net [209.245.128.214]) by barry.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id RAA27242; Fri, 1 Jun 2001 17:55:51 -0400 (EDT) Message-ID: <3B180F80.AEB03BEB@mindspring.com> Date: Fri, 01 Jun 2001 14:56:16 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Lemon Cc: tlambert@primenet.com, current@freebsd.org Subject: Re: PATCH: media option for ethernet hw checksum References: <200105310028.f4V0Sbu77564@prism.flugsvamp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jonathan Lemon wrote: > >Here is a patch I have locally that would be useful for Bill Paul, > >I think. I know, we could use "flag0" for this, but it seems to > >me that this will be an increasingly common option in hadware. > > > >I know Bill had to set this manually as a compile time flag, for > >lack of an option (same for the JMB Intel Gigabit card driver). > > Um, why? It shouldn't be an option. Either the card supports it > and it's turned on, or it doesn't and it's turned off. If anything, > perhaps there should be a sysctl to enable/disable all hw checksums > for those who want a more end-to-end solution. I think you are behind in this thread. The answer is in several parts: 1) For some Gigabit cards, the host can do it faster; for others, it can not. If you can have a machine with several different cards in it, then it needs to be a per card option. This was my initial reason, since I have a local system with both Tigon II and Tigon III cards in it. 2) For some topologies, it makes sense to turn off the checksum checking entirely for local link destinations, since the checksum is not really useful, but it is not possible to negotiate it off on an end-to-end basis, but you might want to avoid the overhead to get much closer to wire speeds on a local intra-cluster network. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message