Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp879141rwp; Thu, 13 Jul 2023 02:33:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlFr7H6Owr4j1NMa5SHpHoDH/90byoM1M1SosncsQ3gg2G8XFz29OPiAR+j1qizO5BH1ES+H X-Received: by 2002:a17:903:244e:b0:1b8:9b1d:d7f1 with SMTP id l14-20020a170903244e00b001b89b1dd7f1mr540543pls.47.1689240818057; Thu, 13 Jul 2023 02:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689240818; cv=none; d=google.com; s=arc-20160816; b=sBdzrF+AkQTKDQcY3XmdYsrlzcXuohFEzA8xHGv7egNpxEt25R7JTzx3E6OJID4VC2 wFo4HA4Ex5vn1vG60b87cfDNKhCYVA8iqo0N5X5Ye+bNUEe8++d/SxdyjV52xe+PHWwu o9y62tC+FPa5H9ENZR44MGCPaT8q14WtixJ8e+hztA0I5fym3/l0u3bOOpJH3hgnfi2Q nm8byYR2O11VXp1jqs/ucaYigTcHaGwWHFhpjbY5UuBcvPX2e59PBmqmKtzOpnQkiZCB /tlf/EIZcWAufrgsnqULWemmmGElACGW3WWEdvaTRoD3D7tCaxRosPhRCT9ji125U4Qe p/Bw== 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:dkim-signature; bh=gVjlECwM+1fbfgLOOw6XdZm+4OOdsicvGVy/w4XxeUU=; fh=CUDXLPWUx+nghYiuFQsnZJzV60qd200jMWXauBw/Z04=; b=0KD0zDbE7C2DggtjCk0CqQbz/bVN3NNkF0rMzFLVR1OOJx29sBzeZ1z8UqcYXH/44D C0ogreDkBwT7PNLdo3L9nt1r9yqK4mRIOFmMbBjmv0WswI0OnkzI2tuXnSP4fip8qDhU 8GfsN5/2ice07CuKbwLsp9AC/hxkObsBe334oiIQEtaE062RcdzADlyJrz5MqDQMBWXs tUfChIfhtSXuE/BAWehYBYlFHAIndee1FXe41Pw9R4fF1LT9FQfQuSOfL7oRCYC1TV8c 7sNw0L+lsVyi04X9Fl2LNDi4s4m0FDQ+AJQiRizdARKSvxZ37z36TaHOjlVtPFc3jIi7 QkCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lf98nuVM; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a170902e5cb00b001b8c689061asi5063499plf.421.2023.07.13.02.33.26; Thu, 13 Jul 2023 02:33:38 -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=@intel.com header.s=Intel header.b=lf98nuVM; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233835AbjGMJIh (ORCPT + 99 others); Thu, 13 Jul 2023 05:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234064AbjGMJHv (ORCPT ); Thu, 13 Jul 2023 05:07:51 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B08841BDA; Thu, 13 Jul 2023 02:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689239269; x=1720775269; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4FbaeI4tBhOKW8/Jmri85jlOT3p1bcaXOdawC1bIvcs=; b=lf98nuVMnt7wwC1UgYjPAde9JzqTRktpPQ1o2DmvHuap4/hbmAtr//ht 0BCGevC7CgncaamV/CyqW+z/w94gbcOgKWLKoKygJ7/x74SXO4A6lj/PG RaG/9PqlKzbJAb6qGCXAG0DS3KJz+khc/trBpAcF8rjXXeC+2FKerM+qO 4v1xVM+knhNv7/2G4vfwqjSVpkNuZWgJ/iYLx3fcfpOFr+sYMGnODqv1J KmZsmaRThP2KfhEkDxc6TIi5Z6/iwTUfrU74M0gC4UjtpduM/nKIrCfAm Nk1i7XdFeqAp81AroadQnCyoeMpMuQOMN1yo/iEX6j3jrS4ww0OZhF5gx A==; X-IronPort-AV: E=McAfee;i="6600,9927,10769"; a="367760118" X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="367760118" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2023 02:07:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10769"; a="866481051" X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="866481051" Received: from amlin-018-114.igk.intel.com ([10.102.18.114]) by fmsmga001.fm.intel.com with ESMTP; 13 Jul 2023 02:07:46 -0700 From: Arkadiusz Kubalewski To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, chuck.lever@oracle.com Cc: Arkadiusz Kubalewski Subject: [PATCH net-next 0/2] tools: ynl-gen: fix parse multi-attr enum attribute Date: Thu, 13 Jul 2023 11:05:48 +0200 Message-Id: <20230713090550.132858-1-arkadiusz.kubalewski@intel.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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 Fix the issues with parsing enums in ynl.py script. v1->v2: Initially this was one patch, but review shown there is need to fix also leftover issues with indexing in _decode_enum(..) function ("tools: ynl-gen: fix enum index in _decode_enum(..)"). Arkadiusz Kubalewski (2): tools: ynl-gen: fix enum index in _decode_enum(..) tools: ynl-gen: fix parse multi-attr enum attribute tools/net/ynl/lib/ynl.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) -- 2.37.3