From patchwork Wed Oct 13 08:57:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Rybchenko X-Patchwork-Id: 101308 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34CBDA0C4D; Wed, 13 Oct 2021 10:57:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 000A541168; Wed, 13 Oct 2021 10:57:29 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id C32C541167 for ; Wed, 13 Oct 2021 10:57:28 +0200 (CEST) Received: by shelob.oktetlabs.ru (Postfix, from userid 122) id 89F9E7F6F4; Wed, 13 Oct 2021 11:57:28 +0300 (MSK) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shelob.oktetlabs.ru X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=ALL_TRUSTED, DKIM_ADSP_DISCARD, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from aros.oktetlabs.ru (aros.oktetlabs.ru [192.168.38.17]) by shelob.oktetlabs.ru (Postfix) with ESMTP id F0CED7F502; Wed, 13 Oct 2021 11:57:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru F0CED7F502 Authentication-Results: shelob.oktetlabs.ru/F0CED7F502; dkim=none; dkim-atps=neutral From: Andrew Rybchenko To: Olivier Matz , Zoltan Kiss Cc: dev@dpdk.org Date: Wed, 13 Oct 2021 11:57:23 +0300 Message-Id: <20211013085723.1206789-1-andrew.rybchenko@oktetlabs.ru> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] mempool: fix name size in mempool structure 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 Sender: "dev" Use correct define as a name array size. The change breaks ABI and therefore cannot be backported to stable branches. Fixes: 38c9817ee1d8 ("mempool: adjust name size in related data types") Signed-off-by: Andrew Rybchenko Reviewed-by: David Marchand --- lib/mempool/rte_mempool.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h index f57ecbd6fc..04b14d7ae9 100644 --- a/lib/mempool/rte_mempool.h +++ b/lib/mempool/rte_mempool.h @@ -209,12 +209,7 @@ struct rte_mempool_info { * The RTE mempool structure. */ struct rte_mempool { - /* - * Note: this field kept the RTE_MEMZONE_NAMESIZE size due to ABI - * compatibility requirements, it could be changed to - * RTE_MEMPOOL_NAMESIZE next time the ABI changes - */ - char name[RTE_MEMZONE_NAMESIZE]; /**< Name of mempool. */ + char name[RTE_MEMPOOL_NAMESIZE]; /**< Name of mempool. */ RTE_STD_C11 union { void *pool_data; /**< Ring or pool to store objects. */