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
apps: use helper to create mbuf pools
[dpdk.git]
/
app
/
test
/
test_table.c
diff --git
a/app/test/test_table.c
b/app/test/test_table.c
index
33e2efc
..
de6c27d
100644
(file)
--- a/
app/test/test_table.c
+++ b/
app/test/test_table.c
@@
-31,9
+31,6
@@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
-#ifdef RTE_LIBRTE_TABLE
-
#include <rte_byteorder.h>
#include <rte_hexdump.h>
#include <rte_string_fns.h>
#include <rte_byteorder.h>
#include <rte_hexdump.h>
#include <rte_string_fns.h>
@@
-92,15
+89,10
@@
app_init_mbuf_pools(void)
printf("Getting/Creating the mempool ...\n");
pool = rte_mempool_lookup("mempool");
if (!pool) {
printf("Getting/Creating the mempool ...\n");
pool = rte_mempool_lookup("mempool");
if (!pool) {
- pool = rte_
mem
pool_create(
+ pool = rte_
pktmbuf_
pool_create(
"mempool",
POOL_SIZE,
"mempool",
POOL_SIZE,
- POOL_BUFFER_SIZE,
- POOL_CACHE_SIZE,
- sizeof(struct rte_pktmbuf_pool_private),
- rte_pktmbuf_pool_init, NULL,
- rte_pktmbuf_init, NULL,
- 0,
+ POOL_CACHE_SIZE, 0, POOL_BUFFER_SIZE,
0);
if (pool == NULL)
rte_panic("Cannot create mbuf pool\n");
0);
if (pool == NULL)
rte_panic("Cannot create mbuf pool\n");
@@
-212,4
+204,3
@@
static struct test_command table_cmd = {
.callback = test_table,
};
REGISTER_TEST_COMMAND(table_cmd);
.callback = test_table,
};
REGISTER_TEST_COMMAND(table_cmd);
-#endif