[dpdk-dev] [PATCH 4/6] mempool: make header size calculation internal
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Tue Oct 19 10:59:43 CEST 2021
On 10/19/21 11:48 AM, David Marchand wrote:
> On Mon, Oct 18, 2021 at 4:49 PM Andrew Rybchenko
> <andrew.rybchenko at oktetlabs.ru> wrote:
>>
>> Add RTE_ prefix to helper macro to calculate mempool header size and
>> make it internal. Old macro is still available, but deprecated.
>>
>> Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
>
> No reference to this macro out there:
> $ git grep-all -w MEMPOOL_HEADER_SIZE
>
>
> The change looks fine to me.
> I just wonder if we really need to expose this helper, is it
> performance sensitive?
>
As far as I can see it is used by rte_mempool_get_priv()
which is inline and could be used on datapath.
More information about the dev
mailing list