test: add flow classify unit tests
authorBernard Iremonger <bernard.iremonger@intel.com>
Tue, 24 Oct 2017 17:28:03 +0000 (18:28 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 24 Oct 2017 20:26:54 +0000 (22:26 +0200)
commit9c9befea4f57285a692b0b67a125daf2ad6eb52a
tree74dbf3aab8ccfb9294e840ceaa53d73a50d9d740
parent41f72ec940749cf5b48cf205f89f0cd351bb7c5b
test: add flow classify unit tests

Add flow_classify_autotest program.

Set up IPv4 ACL field definitions.
Create table_acl for use by librte_flow_classify API's.
Create an mbuf pool for use by rte_flow_classify_query.

For each of the librte_flow_classify API's:
test with invalid parameters
test with invalid patterns
test with invalid actions
test with valid parameters

Initialise ipv4 udp traffic for use by the udp test for
rte_flow_classifier_run.

Initialise ipv4 tcp traffic for use by the tcp test for
rte_flow_classifier_run.

Initialise ipv4 sctp traffic for use by the sctp test for
rte_flow_classifier_run.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
test/test/Makefile
test/test/test_flow_classify.c [new file with mode: 0644]
test/test/test_flow_classify.h [new file with mode: 0644]