From owner-freebsd-net@FreeBSD.ORG Thu May 17 11:32:39 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DDF6616A400 for ; Thu, 17 May 2007 11:32:39 +0000 (UTC) (envelope-from netslists@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 7705113C457 for ; Thu, 17 May 2007 11:32:39 +0000 (UTC) (envelope-from netslists@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so259788ugh for ; Thu, 17 May 2007 04:32:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=D4B/tLlomRbBZ2eZjbOWgt6kzru/V8AJA3Hof6zBnoY3IaS1CLlZuAQp4JoVnZsU8LRDNQkw2L87Y9VBOfaZihLCVVrbbK/GMypECT30UReN1p617i1184cuOaBXCcrSFM//G0YAKyNYVNRfeIXARxvkOJjviQhmJ3UKXi/moLU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=EH/G+urniux8MABLh4yB3fhQWa75bv+/sOAQT3zSCN0zIAfCR2KwKgQk84h7vWekzWyH3c7f/YjJf1a9+/VdFWyKIhgyaBOX8Fc8SepK/PTnab6Cfpc/ZTl/YVXjCD5wuH/fIqwlr6CK3aAHHEndyHhU5w6hq7FS20Lc5rydzyg= Received: by 10.66.255.7 with SMTP id c7mr217465ugi.1179399873768; Thu, 17 May 2007 04:04:33 -0700 (PDT) Received: from ?192.168.16.248? ( [91.135.49.192]) by mx.google.com with ESMTP id j2sm186208ugf.2007.05.17.04.04.32; Thu, 17 May 2007 04:04:33 -0700 (PDT) Message-ID: <464C36BD.7020900@gmail.com> Date: Thu, 17 May 2007 13:04:29 +0200 From: Sten Daniel Soersdal User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Eygene Ryabinkin References: <20070517055003.GB1325@void.codelabs.ru> In-Reply-To: <20070517055003.GB1325@void.codelabs.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: jfv@freebsd.org, freebsd-net@freebsd.org Subject: Re: Port of the new em(4) to RELENG_6 and some problems with 82540EM 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, 17 May 2007 11:32:39 -0000 Eygene Ryabinkin wrote: > Jack, good day. > > I happened to make a quick and dirty patch for your latest (for the > 16.05.2007) em(4) driver from 7-CURRENT. I had seen that you mentioned > TSO and 6.3, so I assume that you're going to merge the driver to > the RELENG_6 someday, so maybe my effort may be helpful. > > To my problems. > > I have the '82540EM Gigabit Ethernet Controller' branded card > (PWLA8390MT) and I am currently expiriencing troubles with the > Gigabit switch (D-Link DGS-1008, the cheap one). Plugged into that > switch I have > > - broken packets and SSH messages 'Disconnecting: Corrupted MAC > on input.' when checksumming is turned on and gigabit speed, > > - abyssmal rates for the HTTP downloads (about 10Mbit/sec) when > checksums are turned off and the speed is gigabit again, > > - having switched the media on the adapter to the 100BaseTX > full-duplex, but still using the same switch the speed drops to > 200Kbit/sec, > > - using another D-Link switch (sorry, have no other brand in > hand) the above situation is completely reproducible. > > - working in the half-duplex mode (for 10BaseT/UTP and 100BaseTX) > I have no problems to reach the 90% of the theoretical bandwidth > of the link via HTTP either with checksums enabled or disabled. > > So, the full-duplex mode is not usable to me now. If someone can > help in this situation, I am all ears. That's what we call a self inflicted network problem. When one end is configured full-duplex and the other end is in auto speed/duplex and you want to set fixed speed/duplex, then you need to do it on both ends. Otherwise the auto-negotiating side will default to half-duplex. This is to be backwards compatible with hubs. -- Sten Daniel Soersdal