* [dpdk-dev] [PATCH] test: use the best mempool ops API to get mbuf pool
@ 2018-02-05 7:43 Nipun Gupta
2018-02-06 0:58 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Nipun Gupta @ 2018-02-05 7:43 UTC (permalink / raw)
To: thomas, olivier.matz; +Cc: dev, jerin.jacob, santosh.shukla, hemant.agrawal
From: Hemant Agrawal <hemant.agrawal@nxp.com>
This patch replaces the uses of default mempool ops API
with newly supported best_mempool_ops API.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
test/test/test_mempool.c | 3 ++-
test/test/test_mempool_perf.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c
index f39df5a..63f921e 100644
--- a/test/test/test_mempool.c
+++ b/test/test/test_mempool.c
@@ -25,6 +25,7 @@
#include <rte_mempool.h>
#include <rte_spinlock.h>
#include <rte_malloc.h>
+#include <rte_mbuf_pool_ops.h>
#include "test.h"
@@ -485,7 +486,7 @@ static int test_mempool_single_consumer(void)
struct rte_mempool *mp_nocache = NULL;
struct rte_mempool *mp_stack = NULL;
struct rte_mempool *default_pool = NULL;
- const char *default_pool_ops = rte_eal_mbuf_default_mempool_ops();
+ const char *default_pool_ops = rte_mbuf_best_mempool_ops();
rte_atomic32_init(&synchro);
diff --git a/test/test/test_mempool_perf.c b/test/test/test_mempool_perf.c
index 70de0b3..4c87783 100644
--- a/test/test/test_mempool_perf.c
+++ b/test/test/test_mempool_perf.c
@@ -25,6 +25,7 @@
#include <rte_mempool.h>
#include <rte_spinlock.h>
#include <rte_malloc.h>
+#include <rte_mbuf_pool_ops.h>
#include "test.h"
@@ -308,7 +309,7 @@ struct mempool_test_stats {
if (mp_cache == NULL)
goto err;
- default_pool_ops = rte_eal_mbuf_default_mempool_ops();
+ default_pool_ops = rte_mbuf_best_mempool_ops();
/* Create a mempool based on Default handler */
default_pool = rte_mempool_create_empty("default_pool",
MEMPOOL_SIZE,
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] test: use the best mempool ops API to get mbuf pool
2018-02-05 7:43 [dpdk-dev] [PATCH] test: use the best mempool ops API to get mbuf pool Nipun Gupta
@ 2018-02-06 0:58 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2018-02-06 0:58 UTC (permalink / raw)
To: Nipun Gupta
Cc: dev, olivier.matz, jerin.jacob, santosh.shukla, hemant.agrawal
05/02/2018 08:43, Nipun Gupta:
> From: Hemant Agrawal <hemant.agrawal@nxp.com>
>
> This patch replaces the uses of default mempool ops API
> with newly supported best_mempool_ops API.
>
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-06 0:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 7:43 [dpdk-dev] [PATCH] test: use the best mempool ops API to get mbuf pool Nipun Gupta
2018-02-06 0:58 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).