test/flow_classify: remove port bound requirement
authorBernard Iremonger <bernard.iremonger@intel.com>
Thu, 4 Jan 2018 10:39:46 +0000 (10:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jan 2018 00:09:12 +0000 (01:09 +0100)
Remove the requirement to have a port bound to igb_uio in
order to run this test suite.

Fixes: 9c9befea4f57 ("test: add flow classify unit tests")
Cc: stable@dpdk.org
Reported-by: Anatoly Burakov <anatoly.burakov@intel.com>
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
test/test/test_flow_classify.c

index e707627..548f147 100644 (file)
@@ -656,18 +656,15 @@ test_flow_classify(void)
        struct rte_table_acl_params table_acl_params;
        struct rte_flow_classify_table_params cls_table_params;
        struct rte_flow_classifier_params cls_params;
-       int socket_id;
        int ret;
        uint32_t size;
 
-       socket_id = rte_eth_dev_socket_id(0);
-
        /* Memory allocation */
        size = RTE_CACHE_LINE_ROUNDUP(sizeof(struct flow_classifier_acl));
        cls = rte_zmalloc(NULL, size, RTE_CACHE_LINE_SIZE);
 
        cls_params.name = "flow_classifier";
-       cls_params.socket_id = socket_id;
+       cls_params.socket_id = 0;
        cls->cls = rte_flow_classifier_create(&cls_params);
 
        /* initialise ACL table params */