From owner-freebsd-stable@FreeBSD.ORG Sat Feb 2 20:09:16 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F18016A417 for ; Sat, 2 Feb 2008 20:09:16 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id C43C213C455 for ; Sat, 2 Feb 2008 20:09:15 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:63885 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JLOfq-0002mA-5x for freebsd-stable@freebsd.org; Sat, 02 Feb 2008 21:09:15 +0100 Received: (qmail 66176 invoked from network); 2 Feb 2008 21:09:11 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 2 Feb 2008 21:09:11 +0100 Received: (qmail 46389 invoked by uid 1001); 2 Feb 2008 21:09:11 +0100 Date: Sat, 2 Feb 2008 21:09:11 +0100 From: Erik Trulsson To: Matthew Herzog Message-ID: <20080202200911.GA46276@owl.midgard.homeip.net> Mail-Followup-To: Matthew Herzog , FreeBSD References: <47A4C7B6.1030203@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47A4C7B6.1030203@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1JLOfq-0002mA-5x. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JLOfq-0002mA-5x 8de1fbd045cbc057a6a98806802f1558 Cc: FreeBSD Subject: Re: ifconfig fxp0 link0 from rc.conf? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Feb 2008 20:09:16 -0000 On Sat, Feb 02, 2008 at 07:42:46PM +0000, Matthew Herzog wrote: > What is the proper way to turn on the checksum offloading for an Intel > fxp card? > > Yes, it's obvious I can do it by hand with ifconfig. That works fine. > How do enable it in rc.conf so that > it happens upon each reboot? I searched the www for an hour and found no > examples. > > My guess would be -flags link0 but I'd rather be sure before hosing the > interface on this physically remote machine ;) > The 'link0' part is for enabling interrupt moderation. That can be enabled with a line in /etc/rc.conf similar to ifconfig_fxp0="inet 10.1.5.1 netmask 255.255.255.0 link0" (Adjust IP-address and netmask as needed.) Checksum offloading should be enabled automatically for those cards which support it. Most chips supported by fxp(4) do not have support checksum offloading. (The i82557, i82558, and i82559 do not support checksum offloading. The i82550 does support it. Newer chips probably also support it.) To enable recieve/transmit checksum offloading just add 'rxcsum'/'txcsum' respectively to the ifconfig line, but as I said this is normally enabled automatically for all NICs that have working support for it. (Use '-rxcsum' and '-txcsum' to disable them if they are enabled and you do not want to use checksum offloading.) You can run "ifconfig -m fxp0" to see what the card supports. The 'options' line in the output is those that are enabled while the 'capabilities' line are those which are supported. Checksum offloading is indicated by RXCSUM and TXCSUM (for receive and transmit respectively.) -- Erik Trulsson ertr1013@student.uu.se