app/crypto-perf: fix out-of-place mempool allocation
[dpdk.git] / app / test-crypto-perf / cperf_test_common.c
index 058e0ba..12925c7 100644 (file)
@@ -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,