app/crypto-perf: fix out-of-place mempool allocation
Add missing rte_mbuf size in mempool allocation for out-of-place operation. Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") Cc: stable@dpdk.org Signed-off-by: Kai Ji <kai.ji@intel.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
c316efc3cf
commit
c84e324e7c
@ -194,7 +194,7 @@ cperf_alloc_common_memory(const struct cperf_options *options,
|
||||
(mbuf_size * segments_nb);
|
||||
params.dst_buf_offset = *dst_buf_offset;
|
||||
/* Destination buffer will be one segment only */
|
||||
obj_size += max_size;
|
||||
obj_size += max_size + sizeof(struct rte_mbuf);
|
||||
}
|
||||
|
||||
*pool = rte_mempool_create_empty(pool_name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user