[dpdk-dev] [PATCH 5/6] mempool: add namespace to driver register macro
David Marchand
david.marchand at redhat.com
Tue Oct 19 10:49:49 CEST 2021
On Mon, Oct 18, 2021 at 4:50 PM Andrew Rybchenko
<andrew.rybchenko at oktetlabs.ru> wrote:
>
> Add RTE_ prefix to macro used to register mempool driver.
> The old one is still available but deprecated.
ODP seems to use its own mempools.
$ git grep-all -w MEMPOOL_REGISTER_OPS
OpenDataplane/platform/linux-generic/pktio/dpdk.c:MEMPOOL_REGISTER_OPS(odp_pool_ops);
I'd say it counts as a driver macro.
If so, we could hide it in a driver-only header, along with
rte_mempool_register_ops getting marked as internal.
$ git grep-all -w rte_mempool_register_ops
FD.io-VPP/src/plugins/dpdk/buffer.c: rte_mempool_register_ops (&ops);
FD.io-VPP/src/plugins/dpdk/buffer.c: rte_mempool_register_ops (&ops);
--
David Marchand
More information about the dev
mailing list