From 5cbf8b4a0293d46649be06e7281be509531b5bc2 Mon Sep 17 00:00:00 2001 From: Bernard Iremonger Date: Thu, 4 Jan 2018 10:39:46 +0000 Subject: [PATCH] test/flow_classify: remove port bound requirement 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 Signed-off-by: Bernard Iremonger --- test/test/test_flow_classify.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/test/test_flow_classify.c b/test/test/test_flow_classify.c index e707627d03..548f14711d 100644 --- a/test/test/test_flow_classify.c +++ b/test/test/test_flow_classify.c @@ -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 */ -- 2.20.1