From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH] net/mlx4_core: print firmware version during driver loading Date: Fri, 14 Sep 2018 22:13:51 +0200 Message-ID: <20180914201351.GE3811@lunn.ch> References: <20180914002514.27571-1-qing.huang@oracle.com> <20180914044314.GC5257@mtr-leonro.mtl.com> <20180914181718.GD3811@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Qing Huang Cc: Leon Romanovsky , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, tariqt@mellanox.com, davem@davemloft.net List-Id: linux-rdma@vger.kernel.org > >$ sudo ethtool -i eth0 > >driver: r8169 > >version: 2.3LK-NAPI > >firmware-version: rtl8168g-2_0.0.1 02/06/13 > > > > Andrew > Sure. You can also use ibstat or ibv_devinfo tool if they are installed. But > it's not very convenient in some cases. This is the standardised way to do this. It should work for any Ethernet driver, so long as it fills in the needed information. Anything else is non-standard, and so inconvenient by definition. Andrew