From owner-freebsd-net@FreeBSD.ORG Thu Nov 28 01:40:04 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B81F52AD for ; Thu, 28 Nov 2013 01:40:04 +0000 (UTC) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D256B8C for ; Thu, 28 Nov 2013 01:40:04 +0000 (UTC) Received: from [206.217.92.186] (port=25529 helo=[192.168.134.134]) by vps.hungerhost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VlqaJ-0006Ot-1h for freebsd-net@freebsd.org; Wed, 27 Nov 2013 20:40:03 -0500 From: George Neville-Neil Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: If you work on a driver that supports pluggable optics or cables... Message-Id: Date: Wed, 27 Nov 2013 20:40:07 -0500 To: FreeBSD Net Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) X-Mailer: Apple Mail (2.1822) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2013 01:40:04 -0000 Howdy, I just added sff8472.h to sys/net which allows driver writers to get = information on SFF/SFP+ optics and cables across i2c more easily. Navdeep (np@) has added the relevant = code to tools/tools/cxgbetool to show how to use these values to get information from cables plugged = into NICs. Can those of you who work on the various drivers that have an I2C interface to the = cabling please look at that include file and the cxgbetool program and start adding your own code to = handle this in a similar way? It=92s a great help to those working with hardware in large data centers = when they can see things like this: trantor:~# cxgbetool t5nex0 modinfo 1 ID: SFP Vendor FINISAR CORP. SN AJ10JQR PN FTLX8571D3BCL Rev A Temp: +35C Vcc 3.225600V TX Bias 2.176000uA TX Power 0.588800mW RX Power 0.486400mW Best, George