From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28809A0543; Mon, 13 Jun 2022 20:36:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E6836410F6; Mon, 13 Jun 2022 20:35:55 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 24FC540222 for ; Mon, 13 Jun 2022 20:35:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655145354; x=1686681354; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=AVkjp5M0d4yXA4U7urufIJ6AC8mi4U6/e4xbdoHmePU=; b=dbmdg6SXkGKQT+Iku7z5P4r+8e4yVORDGa0n3sAtAcuLvp/LqqccF7JL 3ouI4INz0JkEDX5HWoOETBj8gORp1EkAu0zfLfgFPn1KxwnvCpuiwcBL2 2D1dqWvz3DsoxZoC0BVZuJ5YhoOdQEGfj7SWZeuPoNzpGyfeWATB+XJmC YFTlf6rQvkun2oKQ0xFo6itxrwGxGtP5mvaUNwUNTFej0KJShfcYRerOd 8Id+iOGu4xgYY/chHvFPFA0MxBYVJ2cS6ZZxpZecD5JCiP4Y18LOkvqdP eBv8uahtoAEk6C101oleHmA/x4kkKwJigB1/pAfBsHNc0spmTpfJD96to A==; X-IronPort-AV: E=McAfee;i="6400,9594,10377"; a="278408410" X-IronPort-AV: E=Sophos;i="5.91,297,1647327600"; d="scan'208";a="278408410" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 11:35:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,297,1647327600"; d="scan'208";a="726392689" Received: from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210]) by fmsmga001.fm.intel.com with ESMTP; 13 Jun 2022 11:35:52 -0700 From: Nicolas Chautru To: dev@dpdk.org, thomas@monjalon.net Cc: maxime.coquelin@redhat.com, trix@redhat.com, mdr@ashroe.eu, bruce.richardson@intel.com, hemant.agrawal@nxp.com, david.marchand@redhat.com, stephen@networkplumber.org, Nicolas Chautru Subject: [PATCH v1] bbdev: allow operation type enum for growth Date: Mon, 13 Jun 2022 11:24:35 -0700 Message-Id: <1655144675-14363-2-git-send-email-nicolas.chautru@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1655144675-14363-1-git-send-email-nicolas.chautru@intel.com> References: <1655144675-14363-1-git-send-email-nicolas.chautru@intel.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Updating the last enum for rte_bbdev_op_type to allow for enum insertion. Signed-off-by: Nicolas Chautru --- lib/bbdev/rte_bbdev.c | 5 ++++- lib/bbdev/rte_bbdev_op.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/bbdev/rte_bbdev.c b/lib/bbdev/rte_bbdev.c index aaee7b7..6003118 100644 --- a/lib/bbdev/rte_bbdev.c +++ b/lib/bbdev/rte_bbdev.c @@ -1122,7 +1122,10 @@ struct rte_mempool * "RTE_BBDEV_OP_TURBO_DEC", "RTE_BBDEV_OP_TURBO_ENC", "RTE_BBDEV_OP_LDPC_DEC", - "RTE_BBDEV_OP_LDPC_ENC", + "RTE_BBDEV_OP_RESERVED_1", + "RTE_BBDEV_OP_RESERVED_2", + "RTE_BBDEV_OP_RESERVED_3", + "RTE_BBDEV_OP_RESERVED_4", }; if (op_type < RTE_BBDEV_OP_TYPE_COUNT) diff --git a/lib/bbdev/rte_bbdev_op.h b/lib/bbdev/rte_bbdev_op.h index 6d56133..8d66007 100644 --- a/lib/bbdev/rte_bbdev_op.h +++ b/lib/bbdev/rte_bbdev_op.h @@ -748,7 +748,7 @@ enum rte_bbdev_op_type { RTE_BBDEV_OP_TURBO_ENC, /**< Turbo encode */ RTE_BBDEV_OP_LDPC_DEC, /**< LDPC decode */ RTE_BBDEV_OP_LDPC_ENC, /**< LDPC encode */ - RTE_BBDEV_OP_TYPE_COUNT, /**< Count of different op types */ + RTE_BBDEV_OP_TYPE_COUNT = 8, /**< Count of different op types */ }; /** Bit indexes of possible errors reported through status field */ -- 1.8.3.1