[dpdk-dev] [dpdk-dev, v5, 3/3] mbuf: get default mempool handler from configuration
Hunt, David
david.hunt at intel.com
Tue May 31 11:26:25 CEST 2016
On 5/23/2016 1:40 PM, Jan Viktorin wrote:
> On Thu, 19 May 2016 14:45:01 +0100
> David Hunt <david.hunt at intel.com> wrote:
--snip--
>> + mp = rte_mempool_create_empty(name, n, elt_size, cache_size,
>> + sizeof(struct rte_pktmbuf_pool_private), socket_id, 0);
>> + if (mp == NULL)
>> + return NULL;
>> +
>> + rte_mempool_set_handler(mp, RTE_MBUF_DEFAULT_MEMPOOL_HANDLER);
> Check for a failure is missing here. Especially -EEXIST.
Done.
--snip--
Thanks,
Dave.
More information about the dev
mailing list