From owner-cvs-src-old@FreeBSD.ORG Sat Feb 7 01:43:17 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C43C01065673 for ; Sat, 7 Feb 2009 01:43:17 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B10908FC1B for ; Sat, 7 Feb 2009 01:43:17 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n171hHXc064216 for ; Sat, 7 Feb 2009 01:43:17 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n171hH09064215 for cvs-src-old@freebsd.org; Sat, 7 Feb 2009 01:43:17 GMT (envelope-from thompsa@repoman.freebsd.org) Message-Id: <200902070143.n171hH09064215@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to thompsa@repoman.freebsd.org using -f From: Andrew Thompson Date: Sat, 7 Feb 2009 01:43:04 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/dev/usb if_axe.c if_axereg.h usbdevs 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: Sat, 07 Feb 2009 01:43:18 -0000 thompsa 2009-02-07 01:43:04 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/dev/usb if_axe.c if_axereg.h usbdevs Log: SVN rev 188260 on 2009-02-07 01:43:04Z by thompsa MFC r173522, r176910, r178975 - Add private tx/rx buffer management to support large frame sizes and update the rx code to handle multiple frames in a single usb transfer. AX772 parts (at least) exhibit many input errors when operated with a 2K rx buffer and no errors w/ a 4K rx buffer (it's unclear what the cause of the errors is for 2K so this may just be covering up the real issue). Larger rx buffer sizes show no significant performance improvement for AX772. Bypassing the common buffer management routines also eliminates an extra context switch on every packet which noticeably improves performance (TCP netperf rx goes from 45 Mb/s to 85 MB/s). - Apply le*toh() or htole*() to the variables of which we use the address as the buffer pointer in the call to axe_cmd(). This is needed to make the code work on big-endian machines. - Add support for the Apple USB Ethernet adapter. Work around the "latch in at the first working PHY address hack", that fails for this adapter because it returns 0xffff when reading from lower PHY addresses. Also add more debugging printfs Revision Changes Path 1.55.2.1 +195 -104 src/sys/dev/usb/if_axe.c 1.16.2.1 +37 -8 src/sys/dev/usb/if_axereg.h 1.328.2.23 +1 -0 src/sys/dev/usb/usbdevs