From patchwork Thu Jul 27 13:25:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 108849 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2387745qge; Thu, 27 Jul 2017 11:06:40 -0700 (PDT) X-Received: by 10.237.56.73 with SMTP id j67mr7552343qte.51.1501178800621; Thu, 27 Jul 2017 11:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501178800; cv=none; d=google.com; s=arc-20160816; b=IQW2RbI62cxE2gbfFyfAjKm1b5JZ6NSK8bUC1A5N5AyUFsL/QIFNpP5fgqCrcM6IXc hnCeM6dhB6GN8GURsHLN5BlLn49RCmCCS/ec8idAcm6eJesHiyxyuVilepCiDpRzawRk ZXqyv0La8Zp+buqyowANwpP3PUADxIWiv+7uPCkbZXUjYDF05MNl4F9BqDyK2GDT1TIX ZXjtQ7EuV2Qm4hIadjy+MrD0nObuNRUCwMM4gnOYVy+X5oynDK3pySmh+HIa2lRtfdxU fX/03fAzKbxmZD3D46SSR+WH9Px+nO0nsyvRtJD/toki4HjR1rPBMbIf3vCDTGPpFL96 quDQ== 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=sr3VkDERo7z9JZ8/zBXbkllzzWQuD8k3RG9Ox4wS7R86B2iNEOD/4yGg8zk0qGYDvH okQtGImM1TyHHjlc9STn8hghdFhYg8g5vS8HPvmvLEiPZMIJJx950xnpADLfrrxR8NJy puWGDIY1BEimKhPNAMe33bTHGFNXJC0OzzymnwzyZDhvL/aeryt69SDKdqkWNz/oQUe0 qdtnj+QXjUDPD+H5yquDiyf3+kSTDeQza2dLe5X+GANiFtHMFnSyZJsVyU9amcASORKD bMdfEz1OKRGj/1ZVeOOwHlFf5iq5uZ49wGoUeVGZRoApf6bbEk5rjTFqWjqdi0zM1AI3 VONA== 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 x184si15271550qke.29.2017.07.27.11.06.40; Thu, 27 Jul 2017 11:06:40 -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 1B85165C05; Thu, 27 Jul 2017 18:06:40 +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=-0.3 required=5.0 tests=BAYES_00, DATE_IN_PAST_03_06, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 5604A65BDD; Thu, 27 Jul 2017 18:06:36 +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 CE71765BFF; Thu, 27 Jul 2017 18:06:33 +0000 (UTC) Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by lists.linaro.org (Postfix) with ESMTPS id 0708E65BC6 for ; Thu, 27 Jul 2017 18:06:33 +0000 (UTC) Received: by mail-pg0-f41.google.com with SMTP id k190so35473914pgk.5 for ; Thu, 27 Jul 2017 11:06:32 -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=IDLEIjVj5ri3AyPyS3MpJbF/lX2j0vxGW5cAth3FTn7nVPQMONB8CbKdImgjZVdwMv EnoEDA8V/6xM4gvxX0CWFgR/IH9nDkt8lnPtJfRYCEuZB6nTJRe6vP5E0dgDnEo7rik8 WJAWdBxvLsJPgRP1NcpAuW/opohy3eG1EIA5s2llLOUHqfjf465sqSJNYb870sgc1Qd+ pWg7/wsAezLh2qWiwrO3vMM954FQp+dOo+XJF9J8Fejc0BWicIoC73o8L4FDG9X3e6Mu UcfeywvNxGJEsObvs0Pj2gObzS4ArT53RJOIUJFoWg7u4vgM+TcSxzN2izqysgYbROHN q86Q== X-Gm-Message-State: AIVw111XT8MrCpR9LHbr1wM72jG8cSDulh1K7pZ2sXvImw14LrtjAj9d ezYlJHTyYTSzct/SqVPhB65x X-Received: by 10.84.132.106 with SMTP id 97mr5190780ple.105.1501178792065; Thu, 27 Jul 2017 11:06:32 -0700 (PDT) Received: from bala.domain.name ([117.199.137.21]) by smtp.gmail.com with ESMTPSA id n19sm274609pfi.35.2017.07.27.11.06.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Jul 2017 11:06:31 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Thu, 27 Jul 2017 06:25:13 -0700 Message-Id: <1501161913-11459-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [lng-odp] [PATCHv1] fix: classifier_enable field update for classification test cases 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");