Message ID | 20221129020151.3842613-1-mailhol.vincent@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp71401wrr; Mon, 28 Nov 2022 18:04:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bQNSA/kJySOYx2L2wkBOJxl/3p7abhST3pDImn0lTfkURsGHC6jGjdyXlEURQzfP9rC4A X-Received: by 2002:a17:906:5245:b0:7aa:97c7:2c05 with SMTP id y5-20020a170906524500b007aa97c72c05mr31380073ejm.367.1669687484568; Mon, 28 Nov 2022 18:04:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669687484; cv=none; d=google.com; s=arc-20160816; b=yX1nLvegGepwwjFh3i8enCB8zqjov9R28V8lDzylnsT7JZsAjqsdM997zLD7rj0eo6 1ZraMgcX5eD1CdkML6HTp0dXKhniLU4LFix5DNJ/HzPZZJs2crcOC37SJkbugi8VduPN LNoyTd696cu0bj/iMzlObV8c23d4iSKjD+ntwc75IuGD2Hoy6lZn1yfr5n+586bod7bc j3BHdeePM6Am123+XJ39KghvVJR1UyxRHDsz6sBYVmzGinhJCp/E8C14OJpYn8w+tvH/ CQq3olvvMR5aA2T1mwp59CtyTy64qvBA/vv0BvfkFqDetK9AqiC5y8y8jf+6PATe+4td VVUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=SEEyDFoR/rJt6W9E5UQ/hllazvv+kInvkgHiAjRYRuE=; b=UlXYky5GITcit7Q3yDbgLVcIAyrOveBNmYYaVsHpyc1EC+GE5q44ymiMSCaJKDtet+ W2duDLHNYNz8hD0X9sHN1giXWhFfSc7imCAvN2WP8yTVnlcMbD/EFMwrTc7T9b91n9ig YxkZAmgHoEu7Uz2/CgMI8RBFAJh3Q0ZfWN5RnAlI402A60EWodLYuDrGJ2KpI+HkH1Kh /WWf1gKOPZ+0G/OcJ40Rr5fFd4/Vaib7YbBjuhOUSiNZ2SoqftNyhNWVVvrMemWMW/Ac VW+AkMFVPxH8dmWJJJJV+mAt5ZMvVPfXIfkN/3badQrtIs+eKRi6fYu6T6ael5xQJKxK 0WCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F6TsHjRG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a1709063e5200b0077f92be81adsi9217969eji.212.2022.11.28.18.04.20; Mon, 28 Nov 2022 18:04:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F6TsHjRG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235163AbiK2CCL (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Mon, 28 Nov 2022 21:02:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234969AbiK2CCG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 28 Nov 2022 21:02:06 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 611CE45ED3; Mon, 28 Nov 2022 18:01:57 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id w129so12306398pfb.5; Mon, 28 Nov 2022 18:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=SEEyDFoR/rJt6W9E5UQ/hllazvv+kInvkgHiAjRYRuE=; b=F6TsHjRGgoT4/NKVF1+OfG9CN5wERvdQ5n37SPAlWowHPrq+AppORV6xD2I3gbBndM y/8JA2hq5NJRrofFbzGL6jnHDm2M3MPapAk2grjqqqFm08VCahL5pFSx1uxqga+bz/fO BdTUYuBJybPBhGql4b9iH53damkWd8HPCI9UuEzRv1CmkU3CRQr3mgMvjXrSHBukbIMG kMQlA7uRooYYTPJKaw8T4Ko+n0GtM+8XzbtRbxjxWg6K3n2H5TbW3q/y1P3nMdfiNWwW jR1urrn32BkMV+4kIIe6l7y81lQBtZhnSG/yzR084xptyyLMpMTUESs9NNMUjwX904dW djgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SEEyDFoR/rJt6W9E5UQ/hllazvv+kInvkgHiAjRYRuE=; b=6cD3joVX1FnM2XNOJGqJuEgPFudBGMyUOKA2lpJC0JYlLl64mJIEgIVUJlQf6zIHcL f0u/ww9n1XkpGwsnzcjhRnIngnceGpdVQFZnZmZ3/1+ytYPpfhu0mUSEFGJxgGRB5Pc3 2fv1/Ds/UW4grf9rwpGLV+MIdAtPmsSmypsVIvin6FC9OefBFaqnxIPWBSlHXE/qA5vF kTTsv0Wi/nXYnVV2Apuuytwg/VxjsEUBK2eqZouAM6+rx/Y88LK39b70rPnOURPVvC5X XRCVU8ZBv0TjQpI86vajbNx/1XxvpVuF3O5ChtH/9spQBrWGcfykCqR6Jw+3esHQtHuL +JRw== X-Gm-Message-State: ANoB5plRaiY9LS33I980u9k5KjkBIrU8ddpEUg0qi86Skwqzq2IeVVWe crHPmgpqdXk+c5GjlLTDoI8= X-Received: by 2002:a63:389:0:b0:477:7f68:bbbc with SMTP id 131-20020a630389000000b004777f68bbbcmr25979904pgd.279.1669687316944; Mon, 28 Nov 2022 18:01:56 -0800 (PST) Received: from XH22050090-L.ad.ts.tri-ad.global ([103.175.111.222]) by smtp.gmail.com with ESMTPSA id i65-20020a626d44000000b0057458d1f939sm8602175pfc.152.2022.11.28.18.01.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 18:01:56 -0800 (PST) Sender: Vincent Mailhol <vincent.mailhol@gmail.com> From: Vincent Mailhol <mailhol.vincent@wanadoo.fr> To: Jiri Pirko <jiri@nvidia.com>, Jakub Kicinski <kuba@kernel.org> Cc: "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>, Vincent Mailhol <mailhol.vincent@wanadoo.fr> Subject: [PATCH net-next] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER Date: Tue, 29 Nov 2022 11:01:51 +0900 Message-Id: <20221129020151.3842613-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750794223812047726?= X-GMAIL-MSGID: =?utf-8?q?1750794223812047726?= |
Series |
[net-next] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER
|
|
Commit Message
Vincent Mailhol
Nov. 29, 2022, 2:01 a.m. UTC
As discussed in [1], abbreviating the bootloader to "bl" might not be
well understood. Instead, a bootloader technically being a firmware,
name it "fw.bootloader".
Add a new macro to devlink.h to formalize this new info attribute
name.
[1] https://lore.kernel.org/netdev/20221128142723.2f826d20@kernel.org/
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
---
include/net/devlink.h | 2 ++
1 file changed, 2 insertions(+)
Comments
On Tue, 29 Nov 2022 11:01:51 +0900 Vincent Mailhol wrote: > As discussed in [1], abbreviating the bootloader to "bl" might not be > well understood. Instead, a bootloader technically being a firmware, > name it "fw.bootloader". > > Add a new macro to devlink.h to formalize this new info attribute > name. > > [1] https://lore.kernel.org/netdev/20221128142723.2f826d20@kernel.org/ > > Suggested-by: Jakub Kicinski <kuba@kernel.org> > Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> It's okay for this patch to go via the can tree, FWIW. It may cause an extra delay for you if you have to wait for the define to propagate. Either way you should document the meaning of the parameter, however obvious it may seem: Documentation/networking/devlink/devlink-info.rst
+CC: Marc and linux-can mailing list. On Tue. 29 Nov. 2022 at 11:14, Jakub Kicinski <kuba@kernel.org> wrote: > On Tue, 29 Nov 2022 11:01:51 +0900 Vincent Mailhol wrote: > > As discussed in [1], abbreviating the bootloader to "bl" might not be > > well understood. Instead, a bootloader technically being a firmware, > > name it "fw.bootloader". > > > > Add a new macro to devlink.h to formalize this new info attribute > > name. > > > > [1] https://lore.kernel.org/netdev/20221128142723.2f826d20@kernel.org/ > > > > Suggested-by: Jakub Kicinski <kuba@kernel.org> > > Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> > > It's okay for this patch to go via the can tree, FWIW. > It may cause an extra delay for you if you have to wait > for the define to propagate. Marc always pulls from net-next before picking patches and it is a common practice to send to the linux-can mailing list some series which are based on net-next. So I do not foresee any major delay. > Either way you should document the meaning of the parameter, > however obvious it may seem: > > Documentation/networking/devlink/devlink-info.rst ACK. I will send the v2 with both the netdev and the linux-can mailing list. I am fine whoever picks it.
diff --git a/include/net/devlink.h b/include/net/devlink.h index 074a79b8933f..2f552b90b5c6 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -621,6 +621,8 @@ enum devlink_param_generic_id { #define DEVLINK_INFO_VERSION_GENERIC_FW_ROCE "fw.roce" /* Firmware bundle identifier */ #define DEVLINK_INFO_VERSION_GENERIC_FW_BUNDLE_ID "fw.bundle_id" +/* Bootloader */ +#define DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER "fw.bootloader" /** * struct devlink_flash_update_params - Flash Update parameters