X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_flow_classify.c;h=951606f2481096a0d62419f3b90417bc6b7dbb61;hb=0f4531903acb42d894ff5bd4373a222400837315;hp=ff5265c6af374636ace4ce97209f87e56e1698cc;hpb=0d36f32ed29be8ed6d517665cdc266335eb23541;p=dpdk.git diff --git a/app/test/test_flow_classify.c b/app/test/test_flow_classify.c index ff5265c6af..951606f248 100644 --- a/app/test/test_flow_classify.c +++ b/app/test/test_flow_classify.c @@ -23,7 +23,7 @@ #define FLOW_CLASSIFY_MAX_RULE_NUM 100 #define MAX_PKT_BURST 32 -#define NB_SOCKETS 1 +#define NB_SOCKETS 4 #define MEMPOOL_CACHE_SIZE 256 #define MBUF_SIZE 512 #define NB_MBUF 512 @@ -828,6 +828,12 @@ test_flow_classify(void) cls_params.name = "flow_classifier"; cls_params.socket_id = 0; cls->cls = rte_flow_classifier_create(&cls_params); + if (cls->cls == NULL) { + printf("Line %i: flow classifier create has failed!\n", + __LINE__); + rte_free(cls); + return TEST_FAILED; + } /* initialise ACL table params */ table_acl_params.n_rule_fields = RTE_DIM(ipv4_defs);