git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/i40e: fix Tx queue info get
[dpdk.git]
/
app
/
test-crypto-perf
/
cperf_test_common.c
diff --git
a/app/test-crypto-perf/cperf_test_common.c
b/app/test-crypto-perf/cperf_test_common.c
index
bd71ac3
..
423782c
100644
(file)
--- a/
app/test-crypto-perf/cperf_test_common.c
+++ b/
app/test-crypto-perf/cperf_test_common.c
@@
-3,6
+3,7
@@
*/
#include <rte_malloc.h>
*/
#include <rte_malloc.h>
+#include <rte_mbuf_pool_ops.h>
#include "cperf_test_common.h"
#include "cperf_test_common.h"
@@
-124,6
+125,7
@@
cperf_alloc_common_memory(const struct cperf_options *options,
uint32_t *dst_buf_offset,
struct rte_mempool **pool)
{
uint32_t *dst_buf_offset,
struct rte_mempool **pool)
{
+ const char *mp_ops_name;
char pool_name[32] = "";
int ret;
char pool_name[32] = "";
int ret;
@@
-193,8
+195,10
@@
cperf_alloc_common_memory(const struct cperf_options *options,
return -1;
}
return -1;
}
+ mp_ops_name = rte_mbuf_best_mempool_ops();
+
ret = rte_mempool_set_ops_byname(*pool,
ret = rte_mempool_set_ops_byname(*pool,
-
RTE_MBUF_DEFAULT_MEMPOOL_OPS
, NULL);
+
mp_ops_name
, NULL);
if (ret != 0) {
RTE_LOG(ERR, USER1,
"Error setting mempool handler for device %u\n",
if (ret != 0) {
RTE_LOG(ERR, USER1,
"Error setting mempool handler for device %u\n",