From owner-cvs-all@FreeBSD.ORG Sat Nov 10 16:23:38 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED92416A419; Sat, 10 Nov 2007 16:23:38 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D751E13C48E; Sat, 10 Nov 2007 16:23:38 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lAAGNcj2068643; Sat, 10 Nov 2007 16:23:38 GMT (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lAAGNccg068642; Sat, 10 Nov 2007 16:23:38 GMT (envelope-from sam) Message-Id: <200711101623.lAAGNccg068642@repoman.freebsd.org> From: Sam Leffler Date: Sat, 10 Nov 2007 16:23:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/usb if_axe.c if_axereg.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2007 16:23:39 -0000 sam 2007-11-10 16:23:38 UTC FreeBSD src repository Modified files: sys/dev/usb if_axe.c if_axereg.h Log: 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). Submitted by: "J.R. Oldroyd" Reviewed by: imp Obtained from: openbsd (partly) MFC after: 3 weeks Revision Changes Path 1.56 +187 -102 src/sys/dev/usb/if_axe.c 1.17 +37 -8 src/sys/dev/usb/if_axereg.h