Skip to content

Commit

Permalink
app/crypto-perf: fix out-of-place mempool allocation
Browse files Browse the repository at this point in the history
[ upstream commit c84e324 ]

Add missing rte_mbuf size in mempool allocation for
out-of-place operation.

Fixes: bf9d670 ("app/crypto-perf: use single mempool")

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>
  • Loading branch information
KaiJiIntel authored and cpaelzer committed Aug 9, 2021
1 parent a65cf4d commit c83dbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test-crypto-perf/cperf_test_common.c
Expand Up @@ -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,
Expand Down

0 comments on commit c83dbe2

Please sign in to comment.