Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15399808rwb; Mon, 28 Nov 2022 11:06:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Dsax40D+7tODydJmEdM2sSkjMX+tMeEgFuKVMZTUZ2i9aDyr2jPUJkUyWkGbCJyhduaZP X-Received: by 2002:a05:6402:1103:b0:46a:779:4c6a with SMTP id u3-20020a056402110300b0046a07794c6amr28069384edv.201.1669662381185; Mon, 28 Nov 2022 11:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669662381; cv=none; d=google.com; s=arc-20160816; b=zci9kb1vB93oBr8EQtWopb23QvzNdFxRMqRAO46ioYuB0rP9rltE/K58NDJTYCysDG jaoSiovlo2DGiE509S1C0usckoHbJMpU1AC1hUKkKTIfK3rK8B8GvVRRmS48blVKSqIb 7ZfTFYMu87LHTXEYKt3a7T2LofLcXZyNUoJLl42odTuchQa6Wh2sVMuOXHezUSsCqOaM EG9mtV6l3E8sTtqkL/Xgm8m7wCKHctGmHHzyI918/a9xXf4/AaMv1hMX6M9d6sxeKKRN dENJwJgGgo7lzREIvMCAM4KE9RuzUlP9ikxijMJqBPNL/ZGMDGXxPLE60RVJkxTHgZxc n2QQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=JtLyu1tv9x6oqb30qTP6x7eGBhV01X0U+P9yiGt7E3w=; b=MLK6/+MJDqAg+Ta0Wb77nPlIf6JqS5E19uMZaFe3Xx8teX9zH7B2lva3ixeiStik8I 6mSMZAQQNtzaVhu6E9AjxLLOuR17pucvrd1qhWeV2xdkdkq8MsWuSxVcnX1o9ldn5BPz iy0OBHE9TwaLtRfyjc3xrxhe0KCuyn2kZk16my3Su0H38gYbaHlObAC7ksR1I3RN/kXo yYruwi7UiS3TqWCWQ2d0mUcW/gofVRp53Z85NTZ6C4EEOhraEGXbaACwWmygA4ybe+qf aeA1tUwn+QJVi9Cw+feH6syRFtxH94+r91P3KCv5CEb/svrSkVl2zlI4cw6NHdFHI9wQ Ic6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qRFUjzuN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020aa7c3c1000000b00462a87b0546si10003209edr.607.2022.11.28.11.05.57; Mon, 28 Nov 2022 11:06:21 -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=@kernel.org header.s=k20201202 header.b=qRFUjzuN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232228AbiK1SnQ (ORCPT + 84 others); Mon, 28 Nov 2022 13:43:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231743AbiK1SnP (ORCPT ); Mon, 28 Nov 2022 13:43:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C016BE2E; Mon, 28 Nov 2022 10:43:13 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1C7236137F; Mon, 28 Nov 2022 18:43:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E3F7C433C1; Mon, 28 Nov 2022 18:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669660992; bh=0xXqIHs0E79mxg8d6Dvbz5U88DL1tyI1mTmWHQ3xooU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qRFUjzuN6n31JCKERpQCaHM21qkNqvxx+KRKQkcIRC4yb//Mo7YPNYZ8GivbU/+i+ 5nRYBzazZyGeoQXr8gs+7mzPVQyCbF+vxs65rz4VzXvUk0YqCAWWTPTg4KnLvnbhR/ 72hVyk4MuAEvjNxAwwAUHqeIELDidjLZbM4ZmjgW03yvcQGppJEv5fdKvYBF62Gj2z rwO2Shcf4mg8IINpEQ2MSv7kAY40g2Apb1DnoEwK0VfOupyZ5zva8SI+X5CDy+IH3v Wtn8HbLYJMAC19eE+uQUdYcYby6Uke8rsh1UzLNYumBRmsEkuPwhUJKNDuOoG8TIgf hTDPCyVKu6Cjw== Date: Mon, 28 Nov 2022 10:43:11 -0800 From: Jakub Kicinski To: Vincent MAILHOL Cc: Jiri Pirko , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] net: devlink: devlink_nl_info_fill: populate default information Message-ID: <20221128104311.0de1c3c5@kernel.org> In-Reply-To: References: <20221122154934.13937-1-mailhol.vincent@wanadoo.fr> <20221122201246.0276680f@kernel.org> <20221123190649.6c35b93d@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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.