Thread (238 messages) 238 messages, 10 authors, 2016-06-24

Re: [PATCH v10 1/3] mempool: support external mempool operations

From: Shreyansh Jain <hidden>
Date: 2016-06-14 11:38:45

Hi,
-----Original Message-----
From: David Hunt [mailto:david.hunt@intel.com]
Sent: Tuesday, June 14, 2016 3:16 PM
To: dev@dpdk.org
Cc: olivier.matz@6wind.com; viktorin@rehivetech.com;
jerin.jacob@caviumnetworks.com; Shreyansh Jain [off-list ref];
David Hunt [off-list ref]
Subject: [PATCH v10 1/3] mempool: support external mempool operations

Until now, the objects stored in a mempool were internally stored in a
ring. This patch introduces the possibility to register external handlers
replacing the ring.

The default behavior remains unchanged, but calling the new function
rte_mempool_set_handler() right after rte_mempool_create_empty() allows
the user to change the handler that will be used when populating
the mempool.

This patch also adds a set of default ops (function callbacks) based
on rte_ring.

Signed-off-by: Olivier Matz <redacted>
Signed-off-by: David Hunt <redacted>
Acked-by: Shreyansh Jain <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help