From owner-cvs-src-old@FreeBSD.ORG Mon Sep 27 16:29:37 2010 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 7C3A8106578D for ; Mon, 27 Sep 2010 16:29:37 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 69CAA8FC1E for ; Mon, 27 Sep 2010 16:29:37 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o8RGTbbp050130 for ; Mon, 27 Sep 2010 16:29:37 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8RGTbPD050129 for cvs-src-old@freebsd.org; Mon, 27 Sep 2010 16:29:37 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201009271629.o8RGTbPD050129@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 27 Sep 2010 16:29:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/dev/e1000 if_em.c if_igb.c if_lem.c if_lem.h 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: Mon, 27 Sep 2010 16:29:37 -0000 jhb 2010-09-27 16:29:25 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/e1000 if_em.c if_igb.c if_lem.c if_lem.h Log: SVN rev 213205 on 2010-09-27 16:29:25Z by jhb MFC 212902: Tweak the stats exported by the e1000 drivers: - Add a single sysctl procedure to all three drivers to read an arbitrary register (the register is passed as arg2). Use it to replace existing routines in igb(4) that used a separate routine for each register, and to add support for missing stats in em(4) and lem(4). - Move the 'rx_overruns' and 'watchdog_timeouts' stats out of the MAC stats section as they are driver stats, not MAC counters. - Simplify the code that creates per-queue stats in igb(4) to use a single loop and remove duplicated code. - Properly read all 64 bits of the 'good octets received/transmitted' in em(4) and lem(4). - Actually read the interrupt count registers in em(4), and drop the 'host to card' sysctl stats from em(4) as they are not implemented in any of the hardware this driver supports. - Restore several stats to em(4) that were lost in the earlier stats conversion including per-queue stats. - Export several MAC stats in em(4) that were exported in igb(4) but not in em(4). - Export stats in lem(4) using individual sysctls as in em(4) and igb(4). Revision Changes Path 1.21.2.13 +111 -77 src/sys/dev/e1000/if_em.c 1.21.2.13 +32 -106 src/sys/dev/e1000/if_igb.c 1.3.2.7 +260 -159 src/sys/dev/e1000/if_lem.c 1.2.2.3 +0 -3 src/sys/dev/e1000/if_lem.h