]> git.droids-corp.org - dpdk.git/blobdiff - app/test-crypto-perf/cperf_test_common.c
app/crypto-perf: fix out-of-place mempool allocation
[dpdk.git] / app / test-crypto-perf / cperf_test_common.c
index 058e0ba564423c95c9d493ea2693685c27594cbb..12925c7f22ac794645b15881b164c81da2f90084 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,