From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 18 23:30:02 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7189106566C for ; Fri, 18 Jun 2010 23:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA758FC14 for ; Fri, 18 Jun 2010 23:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5INU20d009843 for ; Fri, 18 Jun 2010 23:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5INU2Bk009840; Fri, 18 Jun 2010 23:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 18 Jun 2010 23:30:02 GMT Resent-Message-Id: <201006182330.o5INU2Bk009840@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tony J Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A9B4106566C for ; Fri, 18 Jun 2010 23:27:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 09D1A8FC21 for ; Fri, 18 Jun 2010 23:27:01 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5INR0fn013550 for ; Fri, 18 Jun 2010 23:27:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o5INR0GT013549; Fri, 18 Jun 2010 23:27:00 GMT (envelope-from nobody) Message-Id: <201006182327.o5INR0GT013549@www.freebsd.org> Date: Fri, 18 Jun 2010 23:27:00 GMT From: Tony J To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/147985: alc network driver + tso ( + vlan ? ) does not work. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2010 23:30:03 -0000 >Number: 147985 >Category: kern >Synopsis: alc network driver + tso ( + vlan ? ) does not work. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 18 23:30:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Tony J >Release: 8.1-PRERELEASE >Organization: >Environment: FreeBSD xxxxx.client.convoitec.com 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #1: Fri Jun 18 13:14:06 EST 2010 root@xxxxx.client.convoitec.com:/usr/obj/usr/src/sys/GENERIC amd64 >Description: alc network driver + tso ( + vlan ? ) does not work. alc0: port 0xec00-0xec7f mem 0xfebc0000-0xfebfffff irq 17 at device 0.0 on pci1 alc0: 15872 Tx FIFO, 15360 Rx FIFO alc0: Using 1 MSI message(s). miibus0: on alc0 alc0: Ethernet address: 90:e6:ba:f6:b6:c3 alc0: [FILTER] alc0: link state changed to UP Hello, I have a system using the ALC network card driver with vlans. By default the driver enables TSO4 support on the card. This support does not seem to work in this configuration and causes the OS to generate packets larger then MTU which are sent to the card to be fragmented. This doesn't seem to happen and the packets are dropped. This causes TCP connections to go extremely slowly as many re-transitions occur. ifconfig alc0 -tso fixes the problem. The problem may also occur without vlans however I have not tested this. >How-To-Repeat: /etc/rc.conf: cloned_interfaces="vlan2 vlan3" ifconfig_alc0="inet 192.168.1.1 netmask 255.255.255.0" ifconfig_vlan2="inet 192.168.13.1 netmask 255.255.255.0 vlan 2 vlandev alc0" ifconfig_vlan3="inet 192.168.14.1 netmask 255.255.255.0 vlan 3 vlandev alc0" defaultrouter="192.168.14.254" # scp largefile fred@remote.machine:/tmp/largefile .... goes very very slowly and stalls. # ifconfig alc0 -tso # scp largefile fred@remote.machine:/tmp/largefile .... proceeds normally. >Fix: Temporary fix is to disable tso on the interface: /etc/rc.conf: ifconfig_alc0="inet 192.168.1.1 netmask 255.255.255.0 -tso" >Release-Note: >Audit-Trail: >Unformatted: