[PATCH v3 08/27] net/nfp: using the DPDK memory management API
Chaoyong He
chaoyong.he at corigine.com
Mon Sep 18 03:29:13 CEST 2023
> On 9/15/2023 10:15 AM, Chaoyong He wrote:
> > Revise the logic, using the DPDK memory management API to replace the
> > malloc()/free().
> >
>
> DPDK memory management APIs are required for datapath, where it matters
> from which socket it is allocated, it is accessed a lot (datapath), or it is shared
> between primary & seconday processes.
>
> But memory for the control path come from regular heap, and perhaps that is
> even better as it doesn't fragment the DPDK memory space, @Anatoly can
> comment better on it.
>
>
> Briefly, if there is no reason to the otherwise, I suggest keep using
> malloc()/free().
Thanks to make it clear, I will drop these modifications in the next version.
More information about the dev
mailing list