summaryrefslogtreecommitdiff
path: root/app/test-eventdev/test_order_common.h
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2017-07-04 10:23:08 +0530
committerJerin Jacob <jerin.jacob@caviumnetworks.com>2017-07-07 09:32:59 +0200
commitba11ebf125b60f26c5fbd95ce206bee15f1e056c (patch)
tree15b2a0a14829040f6b48fecb5aaed031660999ac /app/test-eventdev/test_order_common.h
parentd1f59fb71c164382437b3f4af838af12d081fdea (diff)
downloaddpdk-next-eventdev-ba11ebf125b60f26c5fbd95ce206bee15f1e056c.zip
dpdk-next-eventdev-ba11ebf125b60f26c5fbd95ce206bee15f1e056c.tar.gz
dpdk-next-eventdev-ba11ebf125b60f26c5fbd95ce206bee15f1e056c.tar.xz
app/testeventdev: add order basic functions
add functions to create mempool, destroy mempool, dump the options, check the options and print the test result. Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Diffstat (limited to 'app/test-eventdev/test_order_common.h')
-rw-r--r--app/test-eventdev/test_order_common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/test-eventdev/test_order_common.h b/app/test-eventdev/test_order_common.h
index a9dfb64..ccddef6 100644
--- a/app/test-eventdev/test_order_common.h
+++ b/app/test-eventdev/test_order_common.h
@@ -84,7 +84,19 @@ struct test_order {
struct evt_options *opt;
} __rte_cache_aligned;
+static inline int
+order_nb_event_ports(struct evt_options *opt)
+{
+ return evt_nr_active_lcores(opt->wlcores) + 1 /* producer */;
+}
+
+int order_test_result(struct evt_test *test, struct evt_options *opt);
+int order_opt_check(struct evt_options *opt);
int order_test_setup(struct evt_test *test, struct evt_options *opt);
+int order_mempool_setup(struct evt_test *test, struct evt_options *opt);
void order_test_destroy(struct evt_test *test, struct evt_options *opt);
+void order_opt_dump(struct evt_options *opt);
+void order_mempool_destroy(struct evt_test *test, struct evt_options *opt);
+void order_eventdev_destroy(struct evt_test *test, struct evt_options *opt);
#endif /* _TEST_ORDER_COMMON_ */