From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0ED7CC282D7 for ; Wed, 30 Jan 2019 23:42:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B95C32184D for ; Wed, 30 Jan 2019 23:42:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="aA+vWYjU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729304AbfA3XmH (ORCPT ); Wed, 30 Jan 2019 18:42:07 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:46280 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfA3XmF (ORCPT ); Wed, 30 Jan 2019 18:42:05 -0500 Received: by mail-qt1-f194.google.com with SMTP id y20so1543995qtm.13 for ; Wed, 30 Jan 2019 15:42:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nZFctpuufPJPcpHvuHr1e6clmdeEFGFzSl9sEVhQ0qA=; b=aA+vWYjUls+TEEyPv/HInvoM4P4bN6Sxd96paJFeFY3jOyo3izAKX7avlxU5FEBvp0 AKXHQrGUNsR8Hjp4UoJd+3tc8TRKW/hQUFSBTJSutuDR6oO3hKaEt3mF08D7w8UXAWJg HnWxHCot9v7iVtSB1zm22M0UiL6BJQ40E7NOngfKetpjxixUDCw5qaKvZA2VKrLOqzmH nEjY2cZf/QoZV5/VMUdICR01RmjfSSLRpuM+UUWK+O3qzZpSxFO4ZJauzQAdXv88YNmu cGhh9JWUjesTpeqUFnFTTp4UnkhT+18ixTVczbEoP1Kf5r8KGB6yYlQsh00+vMgrPY2Z ksrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nZFctpuufPJPcpHvuHr1e6clmdeEFGFzSl9sEVhQ0qA=; b=rZC71sSQDSmdGxr9oFo1F397En/ZjIKdF3c2WO+x0JTh5LH4e4azmdJfbqjuIIxu+m OGJDZAsUjoI7ermcrYuyqHdti3yNZTsyKWt4xZNsInCghEtJ9qPucQZpLdhEKKxltdLR tMe09VAihTHDEe6A1AVGuZjsRMIFtUVDVR2V2ErC5SBGHGhVItZw6Kym53XlkmPa4jwn E7kLUQBWfo65wTiDCVkpMjY9Y4kE/n9EX3mF4FOesPi+0cBWkj+MBfqpPlTU0hTqsCaL EvxvadhnhSulpAlaEw9EzjdB6cbHCn2kp17g9D+uEADf1hBzU8bISw8244s+HAYo7Je8 eVZA== X-Gm-Message-State: AJcUukep+RZASD8oZDAlp24lTyC6azQAkQKG4DTSpCDIBUb15+v0bRY4 tyc8KqXFMTy8gZmsQ4gOCVJfGQ== X-Google-Smtp-Source: ALg8bN4yfSeSOtyOtpo/6VCGb+oxFD2ubd8bqFLyRU9p8oWcvjSLb8cd2fV+PqVI9PmyNvMRKyjIaQ== X-Received: by 2002:a0c:cb85:: with SMTP id p5mr30185035qvk.162.1548891724872; Wed, 30 Jan 2019 15:42:04 -0800 (PST) Received: from jkicinski-Precision-T1700.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id q21sm4009163qtk.79.2019.01.30.15.42.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 15:42:04 -0800 (PST) From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, oss-drivers@netronome.com, jiri@resnulli.us, andrew@lunn.ch, f.fainelli@gmail.com, mkubecek@suse.cz, eugenem@fb.com, jonathan.lemon@gmail.com, Jakub Kicinski Subject: [PATCH net-next v3 3/8] devlink: add generic info version names Date: Wed, 30 Jan 2019 15:41:28 -0800 Message-Id: <20190130234133.4298-4-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190130234133.4298-1-jakub.kicinski@netronome.com> References: <20190130234133.4298-1-jakub.kicinski@netronome.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add defines and docs for generic info versions. v3: - add docs; - separate patch (Jiri). Signed-off-by: Jakub Kicinski --- .../networking/devlink-info-versions.rst | 38 +++++++++++++++++++ Documentation/networking/index.rst | 1 + include/net/devlink.h | 14 +++++++ 3 files changed, 53 insertions(+) create mode 100644 Documentation/networking/devlink-info-versions.rst diff --git a/Documentation/networking/devlink-info-versions.rst b/Documentation/networking/devlink-info-versions.rst new file mode 100644 index 000000000000..7d4ecf6b6f34 --- /dev/null +++ b/Documentation/networking/devlink-info-versions.rst @@ -0,0 +1,38 @@ +.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +===================== +Devlink info versions +===================== + +board.id +======== + +Unique identifier of the board design. + +board.rev +========= + +Board design revision. + +fw.mgmt +======= + +Control unit firmware version. This firmware is responsible for house +keeping tasks, PHY control etc. but not the packet-by-packet data path +operation. + +fw.app +====== + +Data path microcode controlling high-speed packet processing. + +fw.undi +======= + +UNDI software, may include the UEFI driver, firmware or both. + +fw.ncsi +======= + +Version of the software responsible for supporting/handling the +Network Controller Sideband Interface. diff --git a/Documentation/networking/index.rst b/Documentation/networking/index.rst index f1627ca2a0ea..9a32451cd201 100644 --- a/Documentation/networking/index.rst +++ b/Documentation/networking/index.rst @@ -24,6 +24,7 @@ Linux Networking Documentation device_drivers/intel/i40e device_drivers/intel/iavf device_drivers/intel/ice + devlink-info-versions kapi z8530book msg_zerocopy diff --git a/include/net/devlink.h b/include/net/devlink.h index 6dc0ef964392..6b417f141fd6 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -428,6 +428,20 @@ enum devlink_param_wol_types { .validate = _validate, \ } +/* Part number, identifier of board design */ +#define DEVLINK_INFO_VERSION_GENERIC_BOARD_ID "board.id" +/* Revision of board design */ +#define DEVLINK_INFO_VERSION_GENERIC_BOARD_REV "board.rev" + +/* Control processor FW version */ +#define DEVLINK_INFO_VERSION_GENERIC_FW_MGMT "fw.mgmt" +/* Data path microcode controlling high-speed packet processing */ +#define DEVLINK_INFO_VERSION_GENERIC_FW_APP "fw.app" +/* UNDI software version */ +#define DEVLINK_INFO_VERSION_GENERIC_FW_UNDI "fw.undi" +/* NCSI support/handler version */ +#define DEVLINK_INFO_VERSION_GENERIC_FW_NCSI "fw.ncsi" + struct devlink_region; struct devlink_info_req; -- 2.19.2