[dpdk-dev] Use rte_malloc in application
Rohit Saini (Stellus)
rohit.saini at stellus.com
Thu Aug 3 07:57:46 CEST 2017
Hi,
I have a use case in my application where I need to implement my own memory manager, rather than doing malloc/free everytime to kernel.
Instead of writing my own memory manager, I am thinking to use dpdk rte_malloc or rte_mempool. Please let me know if this is a good idea.
Also,
my_node_t *data_ptr = (my_node_t *) (uintptr_t) rte_malloc(NULL, sizeof(my_node_t), 0);
data_ptr is pointing to some invalid memory. Am I doing anything wrong here?
Thanks,
Rohit
More information about the dev
mailing list