From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 7 05:37:41 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27BB0106566B for ; Tue, 7 Dec 2010 05:37:41 +0000 (UTC) (envelope-from freebsd@penx.com) Received: from Elmer.dco.penx.com (elmer.dco.penx.com [174.46.214.114]) by mx1.freebsd.org (Postfix) with ESMTP id 00CF48FC13 for ; Tue, 7 Dec 2010 05:37:40 +0000 (UTC) Received: from localhost (localhost [IPv6:::1]) by Elmer.dco.penx.com (8.14.4/8.14.4) with ESMTP id oB75AmXQ021899 for ; Mon, 6 Dec 2010 22:10:48 -0700 (MST) (envelope-from freebsd@penx.com) Date: Mon, 6 Dec 2010 22:10:48 -0700 (MST) From: Dennis Glatting X-X-Sender: dennisg@Elmer.dco.penx.com To: freebsd-drivers@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Any work to update the RealTek Drivers? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 05:37:41 -0000 Is there any work going on with the RealTek drivers? The RealTek devices I am using support a 9k MTU but the code limits the MTU to the default. Over gigabit, a larger MTU is desirable. Specifically, on one of several machines I am using: re0: port 0xde00-0xdeff mem 0xfbcff000-0xfbcfffff,0xfbcf8000-0xfbcfbfff irq 16 at device 0.0 on pci7 re1: port 0xce00-0xceff mem 0xfbaff000-0xfbafffff,0xfbaf8000-0xfbafbfff irq 17 at device 0.0 on pci8 Trying to set the MTU: btw# ifconfig re1 mtu 4096 ifconfig: ioctl (set mtu): Invalid argument Looking at the source sys/dev/re/if_re.c /*- * Copyright (c) 1997, 1998-2003 * Bill Paul . All rights reserved. (snip) case RL_HWREV_8168CP: case RL_HWREV_8168D: case RL_HWREV_8168DP: sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD; /* * These controllers support jumbo frame but it seems * that enabling it requires touching additional magic * registers. Depending on MAC revisions some * controllers need to disable checksum offload. So * disable jumbo frame until I have better idea what * it really requires to make it support. * RTL8168C/CP : supports up to 6KB jumbo frame. * RTL8111C/CP : supports up to 9KB jumbo frame. */ sc->rl_flags |= RL_FLAG_NOJUMBO; break;