From owner-cvs-src-old@FreeBSD.ORG Mon May 17 16:58:06 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 A5CE51065675 for ; Mon, 17 May 2010 16:58:06 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (unknown [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9385E8FC1F for ; Mon, 17 May 2010 16:58:06 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o4HGw6vN055153 for ; Mon, 17 May 2010 16:58:06 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o4HGw64G055152 for cvs-src-old@freebsd.org; Mon, 17 May 2010 16:58:06 GMT (envelope-from yongari@repoman.freebsd.org) Message-Id: <201005171658.o4HGw64G055152@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to yongari@repoman.freebsd.org using -f From: Pyun YongHyeon Date: Mon, 17 May 2010 16:57:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/dev/fxp if_fxp.c if_fxpreg.h if_fxpvar.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, 17 May 2010 16:58:06 -0000 yongari 2010-05-17 16:57:55 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/fxp if_fxp.c if_fxpreg.h if_fxpvar.h Log: SVN rev 208199 on 2010-05-17 16:57:55Z by yongari MFC r207832: Export hardware MAC statistics through sysctl node. Previously fxp(4) already used to extract most hardware MAC statistics but it didn't show them. With this change, all MAC statistics counters are exported. Because there are a couple of new counters for 82558 and 82559, enable extended MAC statistics functionality to get these counters. Accoring to public data sheet, 82559 MAC statistics return 24 DWORD counters(3 counters are unknown at this moment) so increase MAC counter structure to meet the MAC statistics block size. The completion of MAC counter dump is now checked against FXP_STATS_DR_COMPLETE status code which is appended at the end of status block. Previously fxp(4) ignored the status of the FXP_SCB_COMMAND_CU_DUMPRESET command. fxp(4) does not wait for the completion of pending command before issuing FXP_SCB_COMMAND_CU_DUMPRESET. Instead it skips the command and try it next time. This scheme may show better performance but there is chance to loose updated counters after stopping controller. So make sure to update MAC statistics in fxp_stop(). While I'm here move sysctl node creation to fxp_sysctl_node(). Tested by: Larry Baird < lab <> gta dot com > Revision Changes Path 1.295.2.6 +209 -78 src/sys/dev/fxp/if_fxp.c 1.43.2.2 +8 -0 src/sys/dev/fxp/if_fxpreg.h 1.49.2.2 +25 -0 src/sys/dev/fxp/if_fxpvar.h