From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id ABD1D7D19 for ; Thu, 4 Jan 2018 11:39:52 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jan 2018 02:39:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,507,1508828400"; d="scan'208";a="24218074" Received: from sivswdev02.ir.intel.com (HELO localhost.localdomain) ([10.237.217.46]) by orsmga002.jf.intel.com with ESMTP; 04 Jan 2018 02:39:50 -0800 From: Bernard Iremonger To: dev@dpdk.org, anatoly.burakov@intel.com Cc: Bernard Iremonger Date: Thu, 4 Jan 2018 10:39:46 +0000 Message-Id: <1515062386-30337-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] test: fix flow classify test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2018 10:39:53 -0000 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") 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 9f331cd..a3bfd1d 100644 --- a/test/test/test_flow_classify.c +++ b/test/test/test_flow_classify.c @@ -610,18 +610,15 @@ struct flow_classifier_acl { 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_params.type = RTE_FLOW_CLASSIFY_TABLE_TYPE_ACL; cls->cls = rte_flow_classifier_create(&cls_params); -- 1.9.1