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
tailq: get rid of broken reserve api
[dpdk.git]
/
app
/
test
/
test_pmd_ring.c
diff --git
a/app/test/test_pmd_ring.c
b/app/test/test_pmd_ring.c
index
19ad0e9
..
7490112
100644
(file)
--- a/
app/test/test_pmd_ring.c
+++ b/
app/test/test_pmd_ring.c
@@
-32,8
+32,6
@@
*/
#include "test.h"
*/
#include "test.h"
-#ifdef RTE_LIBRTE_PMD_RING
-
#include <stdio.h>
#include <rte_eth_ring.h>
#include <stdio.h>
#include <rte_eth_ring.h>
@@
-405,7
+403,7
@@
test_pmd_ring_pair_create_attach(void)
return 0;
}
return 0;
}
-int
+
static
int
test_pmd_ring(void)
{
mp = rte_mempool_create("mbuf_pool", NB_MBUF,
test_pmd_ring(void)
{
mp = rte_mempool_create("mbuf_pool", NB_MBUF,
@@
-445,13
+443,8
@@
test_pmd_ring(void)
return 0;
}
return 0;
}
-#else
-
-int
-test_pmd_ring(void)
-{
- return 0;
-}
-
-#endif
-
+static struct test_command ring_pmd_cmd = {
+ .command = "ring_pmd_autotest",
+ .callback = test_pmd_ring,
+};
+REGISTER_TEST_COMMAND(ring_pmd_cmd);