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,URIBL_BLOCKED,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 82473C169C4 for ; Thu, 31 Jan 2019 18:52:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 56A17218EA for ; Thu, 31 Jan 2019 18:52:16 +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="UwWN95U4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728127AbfAaSwO (ORCPT ); Thu, 31 Jan 2019 13:52:14 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45509 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728068AbfAaSwO (ORCPT ); Thu, 31 Jan 2019 13:52:14 -0500 Received: by mail-pg1-f193.google.com with SMTP id y4so1718793pgc.12 for ; Thu, 31 Jan 2019 10:52:13 -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=RHy6l9Z3+47VOO2rXkskGSjnhYroEUqWghgTZJZIjUc=; b=UwWN95U4YtcKTplBkbJioG3lXXhTrApD5ZYgPYbz9rFS+xf0/hvxdF3l1LX9gO3DYr Cla25zUutrkJu6A2ZaYlHB+2Bw9V3ooY6rV2rBI0khcbu+R+wSWeTlgebMMP/zaTIE9F Ox7MLvKNloUM0ZuQxWDSghbrHYmclv/6c6+v/4KVuUDBJqTGcdluCH/5T1X2jH5TJeFi yNt5D0SrS5TpDCJ3FyWPjKk+03z9H3nIvGm9jzDoAMwZyCTEMNfLbxqk6ifqqkSPriXB pJ3xM2xs1dpZ6JL5X4TqekpE37JSWp1qJd5Zcm/+zxj0VdhzriApnR06NxWWriJ6c8JV bZRA== 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=RHy6l9Z3+47VOO2rXkskGSjnhYroEUqWghgTZJZIjUc=; b=H7u1bw7ICscsqU5WpmJw9rOYCA0PBK5o9OzAZ9mVs2xTWWnNHQP1xCbk0XAxT+33BU vwsNdYR82l0OB6B/4rchYGVATwwIkvAS3xHDA55SJ/YHLDfdYZQZy0M587UYa+SqWw0i Vpe7T7bLRa2k2g3Mfr4nguOPy/Az5EjVWPFGfoH2UpYF4k2cSQwRwie1R7a0jO7DmMsJ ahP/a3tfLkjZzAqXeog8SFphJ2BqPVTtbJZLmmKCFJYUJkcLGWK1oGK8S2WxPYtaKpbF A+gbjasCe7qjwmBAUwVriqavy2BbnlC3m+u0lhdZYWtuSCkucF/1erm7i/VcV4vDrA49 RboA== X-Gm-Message-State: AJcUukfUGYEGkwuAl0W5AkMWZ68zj4KltEqlq0bQJPSNEGDfBZh/bzr0 u+CsjEZhcfsMh+fr6qgI/5p1wQ== X-Google-Smtp-Source: ALg8bN5Fn+TYsdcA3nXhF50WbkhH7KBpLYR1/Mm5ZBkPP3WBXxmRp+8bq1TAhjL5HW+Ya4QVxykEyw== X-Received: by 2002:a63:f1f:: with SMTP id e31mr32217991pgl.274.1548960733011; Thu, 31 Jan 2019 10:52:13 -0800 (PST) Received: from jkicinski-Precision-T1700.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id o4sm7726169pgs.12.2019.01.31.10.52.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 10:52:12 -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 v4 3/8] devlink: add generic info version names Date: Thu, 31 Jan 2019 10:50:42 -0800 Message-Id: <20190131185047.27685-4-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190131185047.27685-1-jakub.kicinski@netronome.com> References: <20190131185047.27685-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 Acked-by: Jiri Pirko --- .../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