From owner-cvs-all@FreeBSD.ORG Fri Aug 1 10:34:00 2003 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 47DAE37B401; Fri, 1 Aug 2003 10:34:00 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5AD843F3F; Fri, 1 Aug 2003 10:33:59 -0700 (PDT) (envelope-from jdp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h71HXx0U002991; Fri, 1 Aug 2003 10:33:59 -0700 (PDT) (envelope-from jdp@repoman.freebsd.org) Received: (from jdp@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h71HXxAF002990; Fri, 1 Aug 2003 10:33:59 -0700 (PDT) Message-Id: <200308011733.h71HXxAF002990@repoman.freebsd.org> From: John Polstra Date: Fri, 1 Aug 2003 10:33:59 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/em if_em.c if_em.h if_em_osdep.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, 01 Aug 2003 17:34:00 -0000 jdp 2003/08/01 10:33:59 PDT FreeBSD src repository Modified files: sys/dev/em if_em.c if_em.h if_em_osdep.h Log: Add facilities for tuning the "em" driver's interrupt delays without recompiling the driver. See the comments near the top of "if_em.h" for descriptions of these delays. Four new loader tunables control the system-wide default values: hw.em.tx_int_delay hw.em.rx_int_delay hw.em.tx_abs_int_delay hw.em.rx_abs_int_delay The tunables are specified in microseconds. The valid range is 0-67108 usec., and 0 means that the timer is disabled. There are also four new sysctls (actually, a set of four for each "em" device in the system) to query and change the interrupt delays after the system is up: hw.em0.tx_int_delay hw.em0.rx_int_delay hw.em0.tx_abs_int_delay (not present for 82542/3/4 adapters) hw.em0.rx_abs_int_delay (not present for 82542/3/4 adapters) It seems to be OK to change these values even while the adapter is passing traffic. Approved by: Prafulla Deuskar MFC after: 4 weeks Revision Changes Path 1.28 +108 -9 src/sys/dev/em/if_em.c 1.19 +11 -4 src/sys/dev/em/if_em.h 1.12 +28 -30 src/sys/dev/em/if_em_osdep.h