From owner-freebsd-net@FreeBSD.ORG Thu Feb 19 10:57:46 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94FDE1065670 for ; Thu, 19 Feb 2009 10:57:46 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from mail4.ecc.u-tokyo.ac.jp (mail3.ecc.u-tokyo.ac.jp [133.11.205.99]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1F08FC20 for ; Thu, 19 Feb 2009 10:57:46 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from mail0.ecc.u-tokyo.ac.jp (mail0.ecc.u-tokyo.ac.jp [133.11.45.132]) by mail4.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id D37A05B12B0 for ; Thu, 19 Feb 2009 19:24:22 +0900 (JST) Received: from mhs002.ecc.u-tokyo.ac.jp (mhs002.ecc.u-tokyo.ac.jp [133.11.70.162]) by mail0.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 1A9B71BE8015 for ; Thu, 19 Feb 2009 19:24:21 +0900 (JST) Received: from amulet.amuletic.net (124.155.55.252 [124.155.55.252]) by mhs002.ecc.u-tokyo.ac.jp (SpamBlock.pstn.b 3.4.102) with ESMTP id for ; Thu, 19 Feb 2009 19:24:07 +0900 Date: Thu, 19 Feb 2009 19:24:07 +0900 Message-ID: From: Hiroharu Tamaru To: freebsd-net@freebsd.org User-Agent: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-IP: 124.155.55.252 X-FROM-DOMAIN: myn.rcast.u-tokyo.ac.jp X-FROM-EMAIL: tamaru@myn.rcast.u-tokyo.ac.jp Subject: Can ASPM be disabled on 82573 to allow Jumbo Frames with em(4)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2009 10:57:46 -0000 Hi I am not sure if I am understanding things right, but is it possible to forcibly disable ASPM in em(4) for 82573 devices? What I wanted to do is to use Jumbo Frames for these NICs and I saw in sys/dev/e1000/if_em.c that says: | static int | em_ioctl(struct ifnet *ifp, u_long command, caddr_t data) | { (snip) | case SIOCSIFMTU: (snip) | case e1000_82573: | /* | * 82573 only supports jumbo frames | * if ASPM is disabled. | */ | e1000_read_nvm(&adapter->hw, | NVM_INIT_3GIO_3, 1, &eeprom_data); | if (eeprom_data & NVM_WORD1A_ASPM_MASK) { | max_frame_size = ETHER_MAX_LEN; | break; | } | /* Allow Jumbo frames - fall thru */ | case e1000_82571: I also found that in Linux, they seem to disable ASPM for certain cases: http://kerneltrap.org/mailarchive/linux-netdev/2007/10/31/374573 So I started to wonder if there is a knob already in FreeBSD to disable ASPM for 82573 and (as a side effect?) allows one to use Jumbo Frames with this device, or I such can be introduced easily. It would be nice to be able to enable Jumbo Frames if the power consumption is not of a problem.. Thanks. Hiroharu