X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_mp_secondary.c;h=4dfe418e728390e2f14b49411b6e1b72a7b03cca;hb=23a5ba8922acebe8ca453e55ea9b10198f049c63;hp=b5d68027659ab32fd122c802188b184ca2a125e9;hpb=21cdbc42541bc542f3d4ca38472628cd9be5431d;p=dpdk.git diff --git a/app/test/test_mp_secondary.c b/app/test/test_mp_secondary.c index b5d6802765..4dfe418e72 100644 --- a/app/test/test_mp_secondary.c +++ b/app/test/test_mp_secondary.c @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include @@ -233,7 +232,12 @@ run_object_creation_tests(void) #ifdef RTE_LIBRTE_LPM rte_errno=0; - if ((rte_lpm_create("test_lpm", size, rte_socket_id(), 0) != NULL) && + struct rte_lpm_config config; + + config.max_rules = rte_socket_id(); + config.number_tbl8s = 256; + config.flags = 0; + if ((rte_lpm_create("test_lpm", size, &config) != NULL) && (rte_lpm_find_existing("test_lpm") == NULL)){ printf("Error: unexpected return value from rte_lpm_create()\n"); return -1;