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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F143C7EE30 for ; Tue, 28 Feb 2023 23:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjB1X20 (ORCPT ); Tue, 28 Feb 2023 18:28:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjB1X20 (ORCPT ); Tue, 28 Feb 2023 18:28:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5037DBB86; Tue, 28 Feb 2023 15:28:25 -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 ams.source.kernel.org (Postfix) with ESMTPS id 0C2B3B80E4B; Tue, 28 Feb 2023 23:28:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA55FC433D2; Tue, 28 Feb 2023 23:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677626902; bh=PrRSA+G2g+osBlGTfuXk2QH617/VjNB0LRZcrhv80v0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TSz7fLDcRMWnDsaoKw/jvhQNesQ2J0KQUhVZZbbF+FUrtSCKFa4bF0cGJSlZtKTKk tRN2YY1dPopkd/lO1FpU7zRAEasUXNpLVa6cimBzdn+rW58VncuOQ+ndsBpxudgxXU KOP6N/lKlZ7m7ZD9ajuoDlGgZAkqQJZJZEgIHFgdf05To804GouVXty7n0DVoaWzYh WDhOSe5B6WE7syAftVv+44YN4HvoqUzDVKmQKfQqPD2ahxHUyQmeTKNR7Fy097blU7 zxrBenP3KtqBL3gVUSq0IWFokjOozQq5xdyQCj+mL395zXZrPFLEE0u0Iy0/pPX1Kq YKWbnfSDthO6g== Date: Tue, 28 Feb 2023 15:28:20 -0800 From: Jakub Kicinski To: Lorenzo Bianconi Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, saeedm@nvidia.com, tariqt@nvidia.com, leon@kernel.org, shayagr@amazon.com, akiyano@amazon.com, darinzon@amazon.com, sgoutham@marvell.com, lorenzo.bianconi@redhat.com, toke@redhat.com Subject: Re: [RFC net-next 1/6] tools: ynl: fix render-max for flags definition Message-ID: <20230228152820.566b6052@kernel.org> In-Reply-To: References: <0252b7d3f7af70ce5d9da688bae4f883b8dfa9c7.1677153730.git.lorenzo@kernel.org> <20230223090937.53103f89@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 1 Mar 2023 00:16:16 +0100 Lorenzo Bianconi wrote: > > I think it also needs to be fixed to actually walk the elements > > and combine the user_value()s rather than count them and assume > > there are no gaps. > > Do you mean get_mask()? Yup, get_mask() predates the ability to control the values of enum entries individually so while at it we should fix it.