ring name size

Morten Brørup mb at smartsharesystems.com
Mon Sep 4 11:33:56 CEST 2023


> From: Thomas Monjalon [mailto:thomas at monjalon.net]
> Sent: Monday, 4 September 2023 11.31
> 
> Hello,
> 
> 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#L52

> There is only RTE_MEMZONE_NAMESIZE.
> 
> Should we document the maximum length as 31 and add a constant?
> #define RTE_RING_NAME_SIZE RTE_MEMZONE_NAMESIZE
> 



More information about the dev mailing list