From owner-freebsd-net@FreeBSD.ORG Thu Jun 3 12:53:03 2010 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 337401065676 for ; Thu, 3 Jun 2010 12:53:03 +0000 (UTC) (envelope-from alteriks@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id BD8738FC1D for ; Thu, 3 Jun 2010 12:53:01 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so823768fgb.13 for ; Thu, 03 Jun 2010 05:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=WuMzGwPQydAFqeFhKtuNbFL279mkMl27GljSh3MnJ4U=; b=xY6V59x9pezpF7bZem3b9wpQL0SiGgAUjZuMXpmVh9ZEqx4BzJRDEkGtbz0Bp8dySR b2RkVvbpce8YewA29RBq1V9RTWGtnUAeDqNpADp2kb8sbaJQK8ieX7cvpce+RIsyCfu8 uwPOrNeu1OYUSw+28CCY1L6as2DCrJ/EaCQC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=YNc4uTnYKjwDS2mZ7br8FI7AAiizBAosS9Arx2N8DZJjcS4HmHIUomT72Rw7hsmD76 VNNpWpIcZUt1MMP/29r3NmnzYwuWKm50c9CIcvhR718pyL8wgZx/E0UPVQVFdb1vnmv6 BWgx06SkQ1rOjX/ARdVzmb6IdO2+D4LzwEA0Q= Received: by 10.239.148.8 with SMTP id d8mr138211hbb.144.1275567898133; Thu, 03 Jun 2010 05:24:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.161.146 with HTTP; Thu, 3 Jun 2010 05:24:38 -0700 (PDT) From: Krzysztof Dajka Date: Thu, 3 Jun 2010 14:24:38 +0200 Message-ID: To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Is enabling jumbo frames on RTL8111C possible? 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, 03 Jun 2010 12:53:03 -0000 Hi, I'm trying to enable jumbo frames on my re0 NIC. I tried: # ifconfig re0 mtu 1600 ifconfig: ioctl (set mtu): Invalid argument I have found in /usr/src/sys/dev/re/if_re.c /* * 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. */ pciconf -lv shows: re0@pci0:2:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x02 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)' class = network subclass = ethernet Do I need to set some quirks in boot process to enable jumbo frames, or it cannot be done because it's not implemented in the driver. I tried setting larger mtu than 1500 on Debian Squeeze and it worked well, so definitely my chip supports jumbo frames