Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp87485rwp; Wed, 12 Jul 2023 10:04:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGvva8wK/WqKkn/BTKCZ1/LQQ1THcMIw88kKwVQgOeywkleCU5gATJDLDWeoVQkV9SpKjYg X-Received: by 2002:a05:6a20:13d4:b0:132:84e4:4bea with SMTP id ho20-20020a056a2013d400b0013284e44beamr3535520pzc.12.1689181463043; Wed, 12 Jul 2023 10:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689181463; cv=none; d=google.com; s=arc-20160816; b=Pm9CtSyBZfjaFaXGDXvA5nlmoDVSsbokG8VgWYiPSPxf7920okv4LTKehuIWI8F5bR wjvJSeFeHSEtqijK74pgjm9/hm0KAUkKlGvGcmNBznoFUgovBkDzO+eEEcS91bzkTxcs 5ByV3IqCrXz4C2kozAUDR5D+120byt9sC/3QG9HSdfdmg94PqxhWEVP0X+naDKncCgrR PH+wxdD3c0YzHkxTN6yRwSBJLpuR8PwFeZuH8LqZtgw1MfyO8jcEae6qzPSdWIRS59/S SeoXMi7HPIkziLdjFa8St2my/nYyPGAbTa8uCDdkMOmWjnHFFr9Z02RgLpjCHL5fofQ3 5dEg== 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=ATmKVmDwOju2tXyf2DfFgJJbNs+H0tUswJL4btJ1AhA=; fh=GOhECcI5POjoPKAGIxNV57l68EgvjFbYSBu5nLuoph4=; b=QqbK7QS0T9gJ4+QUbvtMO97D53dlwTSqluTHitM+ukxfMnWA1mzspBl7j1cRSAjqAx Z9IN8zbRbqcFznvd+e4UX7p6MmQgWw6tvff+pZdpDF/+Y88C5l5oUvWKgEfM5BeQtyXQ IIeR/7Uk9oyDQD2TpZalg65KU9zEMh5i9UeDVEXDEAT25LnZ68nSTS1x3VXuiKl2C129 TIwt/gTbBZuOwUArdV0bZI4Dj95IHMDwCWURHB2Hrx017Nb9OAFO9x7ujgyPsAY7JL24 d9YJfd0nbRRjna8tGMMtiHKSJCJiRpatXc6dIhNRcrXpclZeJtnm/HLgSqcE2Hj5EPVB UvHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nOwgb+tw; 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 s128-20020a637786000000b0055384255b9bsi3459306pgc.24.2023.07.12.10.04.08; Wed, 12 Jul 2023 10:04:23 -0700 (PDT) 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=nOwgb+tw; 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 S231233AbjGLQZC (ORCPT + 99 others); Wed, 12 Jul 2023 12:25:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbjGLQYu (ORCPT ); Wed, 12 Jul 2023 12:24:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93F912723 for ; Wed, 12 Jul 2023 09:24:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1944861876 for ; Wed, 12 Jul 2023 16:24:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 412D1C433B9; Wed, 12 Jul 2023 16:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689179062; bh=m3++tsSMUkSMghoJc11Toy2mU4toGTegF/oDVOAolHE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nOwgb+twFMPD6/6pah30rlN6QR3q+0zOesG0z9XUWWdEHDm4r2kpDazUAfHQm9/YQ aZJXAedKKxDIozWw45dqCpEv9Z74GLQGah9cSoknf9G39pTuRl9kL7ZBn8OFuSpGKD t8ezSFzRaZEE42OVpwo328xERbN5hcdp8CLerTWoWEB6tV1X6UW9j7wgqfYZjRr/MJ 64LDmtVP0v9nKC7W9lOXIVHpOid4E3+jypwIeef91wTyJSoSeKMG5Rcyg4EuWzWXB+ gKDpyrFKySlKCdRk/Z4FUwzSUXKBQW5Sj37fh7ALJpfZ2HBf4+cfB0isp5lAQQsa6+ JIGFIoLprH/WQ== Date: Wed, 12 Jul 2023 09:24:21 -0700 From: Jakub Kicinski To: "Kubalewski, Arkadiusz" Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , "pabeni@redhat.com" , "edumazet@google.com" , "chuck.lever@oracle.com" Subject: Re: [PATCH net-next] tools: ynl-gen: fix parse multi-attr enum attribute Message-ID: <20230712092421.7dbc6f50@kernel.org> In-Reply-To: References: <20230711095323.121131-1-arkadiusz.kubalewski@intel.com> <20230711205953.346e883b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, 12 Jul 2023 09:47:43 +0000 Kubalewski, Arkadiusz wrote: > >+ if 'enum' in attr_spec: > >+ decoded = self._decode_enum(rsp, attr_spec) To be clear - this is just a quick mock up, you'll need to change the arguments here, obviously. Probably to decoded and attr_spec?