From owner-cvs-src-old@FreeBSD.ORG Thu May 6 18:30:55 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E2AF1065766 for ; Thu, 6 May 2010 18:30:53 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 876198FC0C for ; Thu, 6 May 2010 18:30:53 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o46IUrZn051954 for ; Thu, 6 May 2010 18:30:53 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o46IUrJl051953 for cvs-src-old@freebsd.org; Thu, 6 May 2010 18:30:53 GMT (envelope-from yongari@repoman.freebsd.org) Message-Id: <201005061830.o46IUrJl051953@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to yongari@repoman.freebsd.org using -f From: Pyun YongHyeon Date: Thu, 6 May 2010 18:30:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/dev/sge if_sge.c if_sgereg.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2010 18:30:55 -0000 yongari 2010-05-06 18:30:46 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/sge if_sge.c if_sgereg.h Log: SVN rev 207712 on 2010-05-06 18:30:46Z by yongari MFC r207379: Enable FCS stripping and padding 10 bytes bit of RX MAC control register. Due to lack of SiS190 controller, I'm not sure whether this is also applicable to SiS190 so this feature is only activated on SiS191 controller. The controller can pad 10 bytes before DMAing a received frame to RX buffer and received bytes include the padded bytes. This padding is very useful on strict-alignment architectures because driver does not have to copy received frame to align IP header on 4 bytes boundary. It also gives better RX performance on non-strict alignment architectures. Special thanks to xclin to give me valuable register information. Without his enthusiastic trial and errors this wouldn't be even possible. While I'm here tighten validity check of received frame. Controller clears RDS_CRCOK bit when it received bad CRC frames. xclin found that using loop back testing. Tested by: xclin cs dot nctu dot edu dot tw > Revision Changes Path 1.3.2.6 +28 -5 src/sys/dev/sge/if_sge.c 1.1.2.4 +4 -0 src/sys/dev/sge/if_sgereg.h