From patchwork Thu Jul 27 13:26:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 108850 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2389786qge; Thu, 27 Jul 2017 11:08:17 -0700 (PDT) X-Received: by 10.55.133.195 with SMTP id h186mr6624337qkd.21.1501178897877; Thu, 27 Jul 2017 11:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501178897; cv=none; d=google.com; s=arc-20160816; b=yUp2x2nf1UEDXfgm/p/oO69oYTL+F5oN01MNlEdI7Oo+l6CVHuEzAn/l0kpvBuHVIC nvB7g5Ft4NhMx4b6RHK3jkEv951vmaYvdRikETaDOLJoYxgWQBYmIgIq5p0sPc/gP7fC cBtLATkPefkze3RYGlwgGE+V1TFr0gZ2l5rVGRiBBYb4kn1Qo9CC2O2OWcaIIsb7Soaw vuvhyHo0Wx9D9fX3iSDxIT2z3ARuYNNF9pCUBHcuciqPgiFgJ8CxJlrwYr73WDcSe3Vz ILTPL2IU/0Sj+ZZVyY3RhS4LvF1K16Z32aQJjufqdfbklPaZfB7/SrzisG0hJOpXsyqq I6eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :delivered-to:arc-authentication-results; bh=eEXWCeHXG2CHOjbCWwHbGzy1kLNUINmyHYXkCgEfjEY=; b=DBg/broX4tSlof2Ok4N8svx7OadFZqkuhC6c+iiYZztxU3S9mk/LJDlchw1m9CLjPO 0WMYInacYMAnVha8KO49FBQW4jDi0bOSYdtgxXE0bSsFzljG4b7EWx+Ehqh+DLgw/W7D 6UctMUZ7nbGi54AdCK9IfcLb6UoAtzFSYFf3lXBFftMi7e/cK5XzBXU/7v299bmtrl1m teXA4ExHfnUFv6p0DanAIvQIY5WrvQDtjX3JlpLSeeoADW5pE0htFruWLIgQHyn6ZH+Z ijmza1o3k3Dy0xNgoCVzkLyml4n/huU83Qg+Zzhg26/9rKQ/yHmbsRya0vHsopPILrge 5QwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f1si15396893qkd.101.2017.07.27.11.08.17; Thu, 27 Jul 2017 11:08:17 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6591765C13; Thu, 27 Jul 2017 18:08:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DATE_IN_PAST_03_06, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 4BE2965BFF; Thu, 27 Jul 2017 18:08:13 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2EE5865C01; Thu, 27 Jul 2017 18:08:11 +0000 (UTC) Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by lists.linaro.org (Postfix) with ESMTPS id 3DEBC65BC6 for ; Thu, 27 Jul 2017 18:08:09 +0000 (UTC) Received: by mail-pf0-f177.google.com with SMTP id d67so18512937pfc.0 for ; Thu, 27 Jul 2017 11:08:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eEXWCeHXG2CHOjbCWwHbGzy1kLNUINmyHYXkCgEfjEY=; b=sABSvBCotJzhnDRYjyrc6g/DIUx5O8+TnEOXFC3/rVUyFStNltYumsr903KYTOqY5j Gvgmgq+zIU2JsmGEqnxsU7C3b31RnphYM1FfOon7w6C9nt4zXKmBJuSuR30NFlgsJ2c5 ofL5PS0H1d1jLfh7O5JO0btGJoFcszcviGybC72YfkTg3NrZe+iGU0Xc8lD/xXovlMoG PRBAhUKnYC36vMl6qlmUErjSOWArHo0xx85ah8PaXnQ+MzScnQSm9Xp2R768XBZV3MDz psGfbVVnDFugkGbr4ZKWey49L/twdoUFteoMxn9SioQ8x4RPCeGA/q8wlcI41tr4FBjj Kk1g== X-Gm-Message-State: AIVw113urwSSZaFYjuk3YD7mdXtDNH1UDXmDhl7tJB9BwqOwbhAmxkzV 1FFgIe0r3lvfpnrWjVEe+3FH X-Received: by 10.84.241.135 with SMTP id b7mr5187785pll.107.1501178888348; Thu, 27 Jul 2017 11:08:08 -0700 (PDT) Received: from bala.domain.name ([117.199.137.21]) by smtp.gmail.com with ESMTPSA id s67sm33029791pgb.13.2017.07.27.11.08.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Jul 2017 11:08:07 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Thu, 27 Jul 2017 06:26:49 -0700 Message-Id: <1501162009-11539-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [lng-odp] [PATCHv1] test: classification: fix: update odp_pktin_queue_param_t X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" classifier_enable field in odp_pktin_queue_param_t has to set to true for classification test suite to function correctly. Signed-off-by: Balasubramanian Manoharan --- .../validation/api/classification/odp_classification_common.c | 2 ++ .../validation/api/classification/odp_classification_tests.c | 2 ++ 2 files changed, 4 insertions(+) -- 1.9.1 diff --git a/test/common_plat/validation/api/classification/odp_classification_common.c b/test/common_plat/validation/api/classification/odp_classification_common.c index eca30b8..1b142e1 100644 --- a/test/common_plat/validation/api/classification/odp_classification_common.c +++ b/test/common_plat/validation/api/classification/odp_classification_common.c @@ -50,6 +50,8 @@ odp_pktio_t create_pktio(odp_queue_type_t q_type, odp_pool_t pool) odp_pktin_queue_param_init(&pktin_param); pktin_param.queue_param.sched.sync = ODP_SCHED_SYNC_ATOMIC; + pktin_param.classifier_enable = true; + pktin_param.hash_enable = false; if (odp_pktin_queue_config(pktio, &pktin_param)) { fprintf(stderr, "pktin queue config failed.\n"); diff --git a/test/common_plat/validation/api/classification/odp_classification_tests.c b/test/common_plat/validation/api/classification/odp_classification_tests.c index 4f43082..a0f73e3 100644 --- a/test/common_plat/validation/api/classification/odp_classification_tests.c +++ b/test/common_plat/validation/api/classification/odp_classification_tests.c @@ -52,6 +52,8 @@ int classification_suite_init(void) odp_pktin_queue_param_init(&pktin_param); pktin_param.queue_param.sched.sync = ODP_SCHED_SYNC_ATOMIC; + pktin_param.classifier_enable = true; + pktin_param.hash_enable = false; if (odp_pktin_queue_config(pktio_loop, &pktin_param)) { fprintf(stderr, "pktin queue config failed.\n");