From owner-cvs-src@FreeBSD.ORG Thu Nov 17 10:13:19 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E539516A41F; Thu, 17 Nov 2005 10:13:19 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8953843D4C; Thu, 17 Nov 2005 10:13:19 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jAHADJr8072669; Thu, 17 Nov 2005 10:13:19 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAHADJ4O072668; Thu, 17 Nov 2005 10:13:19 GMT (envelope-from glebius) Message-Id: <200511171013.jAHADJ4O072668@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 17 Nov 2005 10:13:18 +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/em if_em.c if_em.h if_em_hw.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 10:13:20 -0000 glebius 2005-11-17 10:13:18 UTC FreeBSD src repository Modified files: sys/dev/em if_em.c if_em.h if_em_hw.h Log: - Backout last change, since it is memory overkill for a non busy host or for a notebook with em(4) adapter. - Introduce tunables em.hw.txd and em.hw.rxd, which allow administrator to configure number of transmit and receive descriptors. - Check em.hw.txd and em.hw.rxd against hardware limits [*] and require them to be multiple of 128. [*] According to comments in if_em.h the 82540EM/82541ER chips can handle more than 256 descriptors. Since we don't have this hardware to test, we decided to mimic NetBSD wm(4) driver, that limits these chips to 256 descriptors. In collaboration with: yongari Revision Changes Path 1.87 +29 -9 src/sys/dev/em/if_em.c 1.39 +8 -4 src/sys/dev/em/if_em.h 1.18 +7 -0 src/sys/dev/em/if_em_hw.h