Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4571261imm; Mon, 30 Jul 2018 17:58:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfyF4mveMm0cM494gZDLnFdeQJANetf3ZUDvP46eV8PpeASP2CWTJvdyolajUCm3u3CsKss X-Received: by 2002:a63:4763:: with SMTP id w35-v6mr18150374pgk.140.1532998721548; Mon, 30 Jul 2018 17:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532998721; cv=none; d=google.com; s=arc-20160816; b=Psqt94xYT4gzxyjHlrP/beg+XAvBBaD6P0O9VFwoOD6rCM1Roj+RgvBNQRC/bInqwH yaYZh7SxzcbrrGtvphJp+9Amf2j8TXRXbViaaDaTSdYouEo3ZSQRKUOgjylfz0r52dH9 bhTlYmo5dL2vwwwOmTj7oP4N3saegHL04nbOhm9mMbTas3BPLpfZVJuXTCPLRnwoIGiM w+TQ9c4eHhGksKKY7cDmfFxQyV+gWhlPhpeZSf8718Xc1ZKEdQ4NXqsBIPIK5RZgKUEi pc4CZdueKc3Y5RVcP6yeUCnVJ/gt3DxmR8aG2qqHL+fU1r3n9TCXXBAfqWKPAA/xzE2H /qMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=HULyR8zh26O7dnhXXkSJisPX2ahCca7DEjo5lBrDagQ=; b=Up8esiJJqV4YXg6AplwZur07GbvZFFJz80QZmhdtc3rc24fwXLyg+Iyi4NhoUud5gq ct3xnOekJN+DEHg4yVqdoqT6Pr6uS9j8kacx6PKlUBK0M/cgVjF23/0LCWIkxTvTAKzA 0BY2f8rhGG4gDrXSOWkDQOSlImYpimTAeCaIYStDnZN97pGdZKHydDHzf1OouS3DAR18 I2KbBDFTlu4Fd4iLKgn+iGpc9d+CLIPrmLL6IYN/KdAAdcs64SRKw/Hbcx5TdNB9rye8 Nn0IkPB0I/z8X8Vi1VNG5p7dHZYQK5lXxyOW7hLxqZehhsraka8p4xiHAsCx3Ob5dmAr uGLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=g8CPKJMe; 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 t24-v6si10796942plr.240.2018.07.30.17.58.27; Mon, 30 Jul 2018 17:58:41 -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 (test mode) header.i=@wp.pl header.s=1024a header.b=g8CPKJMe; 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 S1731953AbeGaCd4 (ORCPT + 99 others); Mon, 30 Jul 2018 22:33:56 -0400 Received: from mx4.wp.pl ([212.77.101.12]:49845 "EHLO mx4.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731288AbeGaCdz (ORCPT ); Mon, 30 Jul 2018 22:33:55 -0400 Received: (wp-smtpd smtp.wp.pl 30881 invoked from network); 31 Jul 2018 02:56:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1532998575; bh=HULyR8zh26O7dnhXXkSJisPX2ahCca7DEjo5lBrDagQ=; h=From:To:Cc:Subject; b=g8CPKJMeyEvjge/FqfxA1av+X1jyQxAy1aGDeO5FENyZHN2n+dpfByYLSzJFsgte/ go2xswqx2D6Pnrq84TUFnEuCPt+pcd3/sesAJ7b9YQZPLQbeCvooPckQFPXoXP2pUE rxEH8SFdv08m4nPqgzTp5nrx21gz1KgxFnISMiSg= Received: from 014.152-60-66-biz-static.surewest.net (HELO cakuba.netronome.com) (kubakici@wp.pl@[66.60.152.14]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 31 Jul 2018 02:56:15 +0200 Date: Mon, 30 Jul 2018 17:56:09 -0700 From: Jakub Kicinski To: Michal Kubecek Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Pirko , David Miller , Florian Fainelli , Roopa Prabhu , "John W. Linville" Subject: Re: [RFC PATCH net-next v2 09/17] ethtool: implement GET_DRVINFO message Message-ID: <20180730175609.18946cce@cakuba.netronome.com> In-Reply-To: <4dcd60f25efe368ada4e0c035dc1d7612ab59132.1532953989.git.mkubecek@suse.cz> References: <4dcd60f25efe368ada4e0c035dc1d7612ab59132.1532953989.git.mkubecek@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: 0c19424e398cf879b88736e75c457d87 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 000000A [IbM0] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Jul 2018 14:53:27 +0200 (CEST), Michal Kubecek wrote: > +GET_DRVINFO > +----------- > + > +GET_DRVINFO request corresponds to ETHTOOL_GDRVINFO ioctl command and provides > +basic driver information. > + > +Request contents: > + > + ETHA_DRVINFO_DEV (nested) device identification > + > +Kernel response contents: > + > + ETHA_DRVINFO_DEV (nested) device identification > + ETHA_DRVINFO_DRIVER (string) driver name > + ETHA_DRVINFO_VERSION (string) driver version > + ETHA_DRVINFO_FWVERSION (string) firmware version FWIW I think fwinfo belongs to devlink, and should be split. Most modern drivers provide versions of multiple FW components smooshed into a single string. Perhaps it's time to allow this facility to carry multiple key: value entries? > + ETHA_DRVINFO_BUSINFO (string) device bus address I wonder if some of this information is also not duplicated with sysfs. There should be a link from the netdev to a sysfs device. Same for driver name. I'm probably missing some uses (in embedded world?) and will be corrected.. :) > + ETHA_DRVINFO_EROM_VER (string) expansion ROM version > + ETHA_DRVINFO_N_PRIV_FLAGS (u32) number of private flags > + ETHA_DRVINFO_N_STATS (u32) number of device stats > + ETHA_DRVINFO_TESTINFO_LEN (u32) number of test results > + ETHA_DRVINFO_EEDUMP_LEN (u32) EEPROM dump size > + ETHA_DRVINFO_REGDUMP_LEN (u32) register dump size