X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_mp_secondary.c;h=ed955905fcad1150c076d46ee0f4c13de8e78b83;hb=1c14c98d7b76ce2eac7c780903c6023e249b6c67;hp=80099b3216d9265e824d5d4727d22c20b3c7116a;hpb=b6df9fc8715f9a925136006b18fdd65f9c621757;p=dpdk.git diff --git a/app/test/test_mp_secondary.c b/app/test/test_mp_secondary.c index 80099b3216..ed955905fc 100644 --- a/app/test/test_mp_secondary.c +++ b/app/test/test_mp_secondary.c @@ -70,9 +70,16 @@ #include #include #include + +#ifdef RTE_LIBRTE_HASH #include #include +#endif /* RTE_LIBRTE_HASH */ + +#ifdef RTE_LIBRTE_LPM #include +#endif /* RTE_LIBRTE_LPM */ + #include #include "process.h" @@ -196,6 +203,7 @@ run_object_creation_tests(void) } printf("# Checked rte_mempool_create() OK\n"); +#ifdef RTE_LIBRTE_HASH const struct rte_hash_parameters hash_params = { .name = "test_mp_hash" }; rte_errno=0; if ((rte_hash_create(&hash_params) != NULL) && @@ -213,7 +221,9 @@ run_object_creation_tests(void) return -1; } printf("# Checked rte_fbk_hash_create() OK\n"); +#endif +#ifdef RTE_LIBRTE_LPM rte_errno=0; if ((rte_lpm_create("test_lpm", size, rte_socket_id(), 0) != NULL) && (rte_lpm_find_existing("test_lpm") == NULL)){ @@ -221,6 +231,7 @@ run_object_creation_tests(void) return -1; } printf("# Checked rte_lpm_create() OK\n"); +#endif /* Run a test_pci call */ if (test_pci() != 0) {