Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1213296imm; Fri, 14 Sep 2018 13:14:20 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb4liSbHzgSOp/QTadrAZB1htw7A9jXt4AB8+xjr2Jdl/9lQpkS6oqA5nA13PchVXd0RyhO X-Received: by 2002:a17:902:4e:: with SMTP id 72-v6mr13710739pla.318.1536956060499; Fri, 14 Sep 2018 13:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536956060; cv=none; d=google.com; s=arc-20160816; b=hqNhnfju8fio99GQsOrA9Xq30FjC80ofIwImyrfL6Hup/NxCt62Mw/Yhgk3BIOcZtn V9Ee6vRYDS0h6hmyKQN/DNG5wYfynnLoHJd7REL1IBWpOlK+Q7ed+leckmsDnSQx+e7Z JfOwmC07RCIA/zj+Dq5ABLiVfo9Zm+Bx3eSBE673lMKWekPZ8evv9HW3g2ztoCAlcteQ kso3/GhpmPAoSWd3+HmiqPDVEj2DVHvhlHPj5POdGMY2OLu1aRci2FHeSDXbDf58vB/S P4CcVujdlwX3Q/84z6dIfcKOmYGVMC9/EFzLRwGTtQARdFvK+JkWlOUaTluo8KjKMx4Z j8uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sX2EW7TxJ0QDOs2iybpUaA5xkbrtSZiryHKRaGxs3zk=; b=FkM3WWHHZoCa8izJYVNzzKUU1LOo3zG2V9kmlP4hWqTKcr7B+HVBcLdxsPeKxdpKSM QKtYVC7omcqI6GQwxEqKiHzsh/cJAoYJLL0tmFqfQ0zEcDX6s41kfNRlPhsXM/16Snru QWr889DQkeJ1htX5LFE/rPXJQ8QnNw22/y0jKrxPxJ1A3Ilk4ZV3DroHyEGTcG+aLOXQ LZyoU8aW53XNOUOKC2DZefL+d1L8gTwKeHceQMKWoXXbcx8VQHBXmzPTfWuEYdEwM1av 9hyx6msKDvz/jmlcX7Saqk9T7qVmDvvRZVxrSbxXtIToCo5BuAfMIF9cHk018yBO1gH/ y9Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VsJI7+kF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123-v6si7721771pfd.201.2018.09.14.13.14.02; Fri, 14 Sep 2018 13:14:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VsJI7+kF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728010AbeIOB35 (ORCPT + 99 others); Fri, 14 Sep 2018 21:29:57 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:35152 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbeIOB35 (ORCPT ); Fri, 14 Sep 2018 21:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=sX2EW7TxJ0QDOs2iybpUaA5xkbrtSZiryHKRaGxs3zk=; b=VsJI7+kFxBrrPEXlAOgeIkR99t7pX1xaMLq6MZwr/7kHCXVpLV0kZDys2bAmqnQwXRecOq7vzTnOze6T9a+pNlp6IFdkzFhoTqxxNHeM6LNi901ZWj88KxWAW7SwOYKfwMdIFad8H4Jh21NqCRsPacmJQpKywq4BT3o+9+Axsp0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1g0uTP-0007PB-DL; Fri, 14 Sep 2018 22:13:51 +0200 Date: Fri, 14 Sep 2018 22:13:51 +0200 From: Andrew Lunn 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 Subject: Re: [PATCH] net/mlx4_core: print firmware version during driver loading 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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