From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 22:25:19 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F3776738; Sat, 16 Aug 2014 22:25:18 +0000 (UTC) Received: from mail.ipfw.ru (mail.ipfw.ru [IPv6:2a01:4f8:120:6141::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B87782409; Sat, 16 Aug 2014 22:25:18 +0000 (UTC) Received: from v6.mpls.in ([2a02:978:2::5] helo=ws.su29.net) by mail.ipfw.ru with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82 (FreeBSD)) (envelope-from ) id 1XIiRv-0008r2-WA; Sat, 16 Aug 2014 22:11:32 +0400 Message-ID: <53EFDA3C.3010008@FreeBSD.org> Date: Sun, 17 Aug 2014 02:25:00 +0400 From: "Alexander V. Chernikov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: hackers@freebsd.org, "net@freebsd.org" Subject: SIOCGI2C ioctl for NIC drivers X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: George Neville-Neil , Navdeep Parhar X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2014 22:25:19 -0000 Hello list. It seems that networking is evolving quite rapidly, so 10g nics are quite common: we have Intel, Chelsio, Mellanox, Emulex, Solarflare and Myricom drivers in our tree (maybe some others). 40G are also here: (Chelsio, Mellanox, Intel). Things like 25G NICs are also getting more interest. Most of them uses SFP+/QSPF+ (either for short range optics or passive/active twinax cabling) and we can improve diagnostics here by providing standard way to request i2c data (like vendor info and signal levels) from transceivers. Chelsio and Intel drivers already provide methods to retrieve those info, but in a different way. I'd like to add SIOCGI2C as standard ioctl for that, picking value like 61, if there are no objections.