From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 4 19:21:32 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DF4D106564A for ; Sat, 4 Aug 2012 19:21:32 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 605338FC0C for ; Sat, 4 Aug 2012 19:21:32 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q74JLOdo069907 for freebsd-hackers@freebsd.org; Sat, 4 Aug 2012 19:21:24 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id k4j6kepp79iu9y9ejditzn7tf6; for freebsd-hackers@freebsd.org; Sat, 04 Aug 2012 19:21:23 +0000 (UTC) (envelope-from kientzle@freebsd.org) From: Tim Kientzle Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Date: Sat, 4 Aug 2012 12:21:23 -0700 Message-Id: To: freebsd-hackers Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) Subject: How to Expose Chip-level Ethernet Statistics? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2012 19:21:32 -0000 I believe that some of the issues I'm having with this Ethernet driver might be easier to diagnose if I could expose the chip-level statistics counters (especially queue overrun counts). Is there a standard way to do this? I've looked at systat, netstat, and ifconfig but haven't yet found a standard tool that queries this sort of information. (If I could find that, I could figure out which ioctl it used=85) Pointers appreciated=85 In particular, if there's another Ethernet driver that does this well, I can use that for a reference. Tim