Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15721833rwb; Mon, 28 Nov 2022 15:25:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf50J2vxv/sTBva2G+/tt7Wzr+7AALzd94/0TO5HccoHF7i6rKGJtZq9bfQpODgK2AouAYx0 X-Received: by 2002:a17:90a:8d02:b0:219:1ffc:143c with SMTP id c2-20020a17090a8d0200b002191ffc143cmr12994320pjo.9.1669677918963; Mon, 28 Nov 2022 15:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669677918; cv=none; d=google.com; s=arc-20160816; b=jeeQOxZEy+DBDGhDhmYjynProa3eHQOzFFCCmgKSzIW/rmc9ybdBYo4NX2yIwiQOP/ Le1aDwt1cXjH6aEFwMc/uATwwaEvtsfw1fq+lqpBcm2x3mTeDkVp5ypX9krEucZ/UOOF g4ZjBFnRC+dz5hu/b5gU2AvVN7nzRujqUfocnjSoZv0HuIgK6H344Ki5tYwUJ9idHVzv XogX/pHQEwQrq05YFm43xcwlZnnC4MDTaeWCYB1TlgCrA+C7YdOOwmKt1xAsuag4YFe1 ZgD6jKf3PDuFXlLaoUIcPBlaFgZNkOiGmyiT0vzmn3ZOYTS+1MQdhLsk8Asgi6x/4uDB SaLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=mE5GAuUuxuRXdMYEVXzjTlSiVxqi5TsFYOMmV1DHmFE=; b=an8ppL1Vu3jZYBrhEWcf2WxM2O+6SSIhxQyj7FSEODTAYfQiK/P0TT14BxlN6Ttl0D XQXskk3S6f4kszaiHnocwY/nGOamJdHWk3ThOQlVNEgcF8yq4gl+fAGflE6xnoKmdZd5 0/71AqSFF8afBW1Jd1qzKvAixDIsEdx/8FgccOU8cFcduYzRrjCm1PEBG26kMc8L6KM1 OxiTQp0Mf63Ce188M9HJbDze6WyaPwK3TPCTUWQyX8KJ2k2/gfQjCvkuifVYlbRNSqZ7 iGEH6tMszyprtDgYZprTrYIWe7UNng2kMzGziyY7baVfOV/audbUiVwdNUDjYJj1kcpS RMPw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a170902d34200b00188f4d6c28csi11969234plk.167.2022.11.28.15.25.07; Mon, 28 Nov 2022 15:25:18 -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; 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 S232801AbiK1XOY (ORCPT + 83 others); Mon, 28 Nov 2022 18:14:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiK1XOW (ORCPT ); Mon, 28 Nov 2022 18:14:22 -0500 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A3FB2F022; Mon, 28 Nov 2022 15:14:18 -0800 (PST) Received: by mail-pg1-f173.google.com with SMTP id f9so11331179pgf.7; Mon, 28 Nov 2022 15:14:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mE5GAuUuxuRXdMYEVXzjTlSiVxqi5TsFYOMmV1DHmFE=; b=5eLmpn7OoYk1/xGh+0zuap3QlYkaiSUsRHoErdngbcbHYsbEwY82IkmGCEtDDnzkJd jzSf8CCJRZdIYotMLzKcvkBCobTnu52chpi0o9OGgr4eOL6Vn8HrCHzAdbZp9Jqq7/GI rETdw4GlMaFYtes2oTszaurpdSGobVjC+YaFJmczAFcEcd9LskEeMPI4AFzHpdrak7Bv m81xsHZw3Irqhk9rI937C/Be8Bt/lhcukcz21ru/sTU6uJzxzsue34sHPNUnm4ghv2IV clcGlf8/tK/Gyg9o7pE1yHcPBbCVAX771yLla1/+tccnJf28YO2QwXBB0oEzAazPJ6mB n5XA== X-Gm-Message-State: ANoB5pnyD1FWtNfibB0h//BW+j3efu9D4ZcX/Nk2x+Tca6k6GecuIr4Y u2e7PaFdlOlL7SySAsIrhHuUWVhahHnDETEGy6M= X-Received: by 2002:a62:6d02:0:b0:562:3411:cb3a with SMTP id i2-20020a626d02000000b005623411cb3amr34705095pfc.60.1669677257386; Mon, 28 Nov 2022 15:14:17 -0800 (PST) MIME-Version: 1.0 References: <20221122154934.13937-1-mailhol.vincent@wanadoo.fr> <20221122201246.0276680f@kernel.org> <20221123190649.6c35b93d@kernel.org> <20221128104311.0de1c3c5@kernel.org> In-Reply-To: <20221128104311.0de1c3c5@kernel.org> From: Vincent MAILHOL Date: Tue, 29 Nov 2022 08:14:06 +0900 Message-ID: Subject: Re: [RFC PATCH] net: devlink: devlink_nl_info_fill: populate default information To: Jakub Kicinski Cc: Jiri Pirko , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue. 29 Nov. 2022 at 03:43, Jakub Kicinski wrote: > On Thu, 24 Nov 2022 14:33:58 +0900 Vincent MAILHOL wrote: > > > I think 2/ is best because it will generalize to serial numbers while > > > 1/ will likely not. 3/ is a smaller gain. > > > > > > Jiri already plumbed thru the struct devlink_info_req which is on the > > > stack of the caller, per request, so we can add the bool / bitmap for > > > already reported items there quite easily. > > > > Sorry, let me clarify the next actions. Are you meaning that Jiri is > > already working on the bitmap implementation and should I wait for his > > patches first? Or do you expect me to do it? > > Dunno if the question still stands but we already have > struct devlink_info_req and can put the bitmap in it. > All drivers use devlink helpers to add attributes. Roger that. I already wrote the code, I just need to do a bit of ironing and extra testing. I will send it after the "net: devlink: devlink_nl_info_fill: populate default information" series gets merged.