From owner-freebsd-net@FreeBSD.ORG Tue Oct 10 06:36:16 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3298816A4C9 for ; Tue, 10 Oct 2006 06:36:16 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD0243D5E for ; Tue, 10 Oct 2006 06:36:15 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so2513207pye for ; Mon, 09 Oct 2006 23:36:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=QBIIfdKNUEI0o6lcPbx79INvsL30UebLzXS0xoGrJVQWrWdwmcS+7SaXg+r8iReW4Kt51gnS+H7dxlpf0W7hiC1Y9qkjLyi80EVWf4U1R/E9jSXXV7EmuJoqBn679hRzsBXn9+pmoIKWbsP+On/1tmThjp6YIUN7fdUTnNaAmfI= Received: by 10.35.91.1 with SMTP id t1mr14599772pyl; Mon, 09 Oct 2006 23:36:14 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id 20sm2076129nzp.2006.10.09.23.36.12; Mon, 09 Oct 2006 23:36:13 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k9A6Zw6B008647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 10 Oct 2006 15:35:58 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k9A6Zu41008646; Tue, 10 Oct 2006 15:35:56 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 10 Oct 2006 15:35:56 +0900 From: Pyun YongHyeon To: Artem Belevich Message-ID: <20061010063556.GC7419@cdnetworks.co.kr> References: <4525FD2A.6060509@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org, "Andrey V. Elsukov" Subject: Re: 88E8053 Yukon2 PCI-E GbE - any plans to port msk() driver from OpenBSD? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 06:36:16 -0000 On Fri, Oct 06, 2006 at 01:09:05AM -0700, Artem Belevich wrote: > Andrey, thanks for the pointer. > > Pyun, > > Thanks a lot for the driver. Considering that question about support > for Yukon2 based cards was popping up on this list for more than a > year, I'm pretty sure I'm not the only one who appreciates your work. > > BTW, your driver seems to be largely based on Marvel's driver, while Yes. > the one in OpenBSD seems to be patched up if_sk. Can you give an > overview of the current status of your driver - stability, > supported/unsupported features, etc.? Would that be possible to get I've adopted the OpenBSD interface name msk(4) to reduce naming differences between BSDs. Personally I think we should give Marvell credit for their BSD-licensed myk(4). Without myk(4) writing a driver for the hardware would be impossible. I don't think OpenBSD can solve various hardware issues without Yukon II datasheet which is not available to developers. FreeBSD msk(4) has workaround code obtained from myk(4). The driver supports the following hardware features. o Tx TCP/UDP checksum offload o Rx IP checksum offload o VLAN hardware tag stripping/insertion o Jumbo frame support(up to 9018 bytes) o Support for dual MAC configuration - Not tested. o Automatic crossover detection Not implemented hardware features. o Failover functionality - No plan to implement. o Rx TCP/UDP checksum offload - Don't know how to make it work. o TCP Segmentation offload(a.k.a TCP Large Send) - Needs datasheet. o 64bit DMA - No plan for a while as it needs complex list elements managements. The driver needs more tests and feedback from users but it seems to work well for normal usage patterns. However it seems that the driver has a Rx performance issue which I'd like to fix. I have an onboard Yukon EC NIC but Marvell produced so many revisions and each revision has bugs that needs special code to workaound it. > the driver back-ported to -stable? I'd be glad to give it a try. > First, I need more feedback before commiting to HEAD. > Thanks a lot, > --Artem > > > On 10/5/06, Andrey V. Elsukov wrote: > >Artem Belevich wrote: > > > >> OpenBSD apparently got a driver for Marvell Yukon2 Gigabit Ethernet > >> adapters that these days present on quite a few motherboards (or as a > >> relatively inexpensive PCI-Express card). NetBSD got it as well. > > > >See here: > >http://people.freebsd.org/~yongari/msk/ > > > >-- > >WBR, Andrey V. Elsukov > > > > > -- > --Artem -- Regards, Pyun YongHyeon