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
test/crypto: add lookaside IPsec ICV corrupt case
[dpdk.git]
/
app
/
test
/
test_flow_classify.c
diff --git
a/app/test/test_flow_classify.c
b/app/test/test_flow_classify.c
index
ff5265c
..
951606f
100644
(file)
--- 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 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
#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);
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);
/* initialise ACL table params */
table_acl_params.n_rule_fields = RTE_DIM(ipv4_defs);