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 73401424EE; Mon, 4 Sep 2023 11:34:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A22F402EA; Mon, 4 Sep 2023 11:34:00 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id AA296402E2 for ; Mon, 4 Sep 2023 11:33:59 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 7AF782089E; Mon, 4 Sep 2023 11:33:59 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: ring name size Date: Mon, 4 Sep 2023 11:33:56 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87B6C@smartserver.smartshare.dk> In-Reply-To: <2838948.yaVYbkx8dN@thomas> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ring name size Thread-Index: AdnfEoLpvhbW4zqKSCaRvIfpcG//KgAAD+2Q References: <2838948.yaVYbkx8dN@thomas> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Thomas Monjalon" , "Honnappa Nagarahalli" , "Konstantin Ananyev" Cc: 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 > From: Thomas Monjalon [mailto:thomas@monjalon.net] > Sent: Monday, 4 September 2023 11.31 >=20 > Hello, >=20 > When creating a ring, we need to know the maximum length of the name. > It seems this value is not documented. > And there is no constant defined. It is defined (with a description) here: https://elixir.bootlin.com/dpdk/latest/source/lib/ring/rte_ring_core.h#L5= 2 > There is only RTE_MEMZONE_NAMESIZE. >=20 > Should we document the maximum length as 31 and add a constant? > #define RTE_RING_NAME_SIZE RTE_MEMZONE_NAMESIZE >=20