From owner-freebsd-current@FreeBSD.ORG Thu Jan 12 11:33:19 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8598116A420 for ; Thu, 12 Jan 2006 11:33:19 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id F366C43D49 for ; Thu, 12 Jan 2006 11:33:18 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id l1so339933nzf for ; Thu, 12 Jan 2006 03:33:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:reply-to:mime-version:content-type:content-disposition:user-agent; b=GHDyVINAMEq1XDUZ1g/5E+OHfsXMSS9wA77IteGM1IIAxBnpZqEn4JR4uXcawkDnBYeG3zzglDyVE4yuyFV+SC1YxvVdNM7t+Y7AgpZSD8HN8Oz+CGbGMDjPdWKw++12upjZ6P9XlXWr7DgWyW+HDw5FkAH1Hg9nZG4G6AujwZY= Received: by 10.36.77.8 with SMTP id z8mr1866058nza; Thu, 12 Jan 2006 03:33:18 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 7sm1647162nzn.2006.01.12.03.33.17; Thu, 12 Jan 2006 03:33:18 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.5/8.13.5) with ESMTP id k0CBWp4t015429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 12 Jan 2006 20:32:51 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.5/8.13.5/Submit) id k0CBWpIW015428 for current@FreeBSD.org; Thu, 12 Jan 2006 20:32:51 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 12 Jan 2006 20:32:51 +0900 From: Pyun YongHyeon To: current@FreeBSD.org Message-ID: <20060112113251.GB13481@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: call for sk(4) testers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 11:33:19 -0000 All, Here is modified sk(4) that makes use of bus_dma(9). It was lightly tested on sparc64(SMP)/i386(SMP). Changes from stock sk(4) - MPSAFE. No more recursive lock requiried. - bus_dma(9) conversion. I think it should work on all architectures. But testing on systems with > 4Gb was not performed due to lack of hardware resources. - optimized Rx handler for each normal and jumbo frames. Stock sk(4) used jumbo frame management code to handle normal sized frames. As the handler needs an additional lock to protect jumbo frame management structure from races, the stock driver actually used two lock operations for each received packet. The new driver uses single lock operation for normal frame.(Jumbo frame needs two lock operations as before.) - Tx TCP/Rx IP checksum offload support. According to the data sheet of SK-NET GENESIS the hardware supports Rx IP/TCP/UDP offerload. But I couldn't make it work on my Yukon hardware. So Rx TCP/UDP was disabled at the moment. - Other minor changes(callout(9) conversion, fix bugs etc.) You can get latest sk(4) driver from the following URL. http://people.freebsd.org/~yongari/sk/if_sk.c http://people.freebsd.org/~yongari/sk/if_skreg.h Or big diffs against HEAD. http://people.freebsd.org/~yongari/sk/sk.patch.CURRENT I'd like to hear any success/failure reports. If you have a NIC that is supported by sk(4) please give it a try and let me know the result. Thanks. -- Regards, Pyun YongHyeon