From owner-cvs-all@FreeBSD.ORG Fri Apr 2 15:37:08 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6971F16A4CE; Fri, 2 Apr 2004 15:37:08 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56DA543D4C; Fri, 2 Apr 2004 15:37:08 -0800 (PST) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i32NanGe042863; Fri, 2 Apr 2004 15:36:49 -0800 (PST) (envelope-from ru@repoman.freebsd.org) Received: (from ru@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i32Nan3A042861; Fri, 2 Apr 2004 15:36:49 -0800 (PST) (envelope-from ru) Message-Id: <200404022336.i32Nan3A042861@repoman.freebsd.org> From: Ruslan Ermilov Date: Fri, 2 Apr 2004 15:36:49 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/pci if_ste.c if_stereg.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 02 Apr 2004 23:37:08 -0000 ru 2004/04/02 15:36:49 PST FreeBSD src repository Modified files: sys/pci if_ste.c if_stereg.h Log: Performance tuning. Moved the RX ring resyncing code to ste_rxeoc(), and only run it if we were asked to POLL_AND_CHECK_STATUS, under DEVICE_POLLING. (This significantly reduces the CPU load.) Improved the RX ring resyncing code by re-checking if the head is still empty before doing resyncing. This mostly affects the DEVICE_POLLING mode, where we run this code periodically. We could start checking with an empty head (well, an empty ring even), and after doing a few iterations, the chip might write a few entries, including the head, and we would bogusly consider this case as requiring resyncing. On a test box, this reduced the number of resyncs done by a factor of 10. In ste_txeof(sc), only reset the watchdog timer to zero when the TX list is completely empty. Converted ste_tx_prev_idx to a pointer -- faster. Removed some bitrot. Revision Changes Path 1.68 +44 -38 src/sys/pci/if_ste.c 1.14 +1 -3 src/sys/pci/if_stereg.h