From patchwork Tue Jul 14 13:06:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 51108 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DAA8E202B9 for ; Tue, 14 Jul 2015 13:07:18 +0000 (UTC) Received: by wgwk7 with SMTP id k7sf2730389wgw.0 for ; Tue, 14 Jul 2015 06:07:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=tsWvSz3LZts/lfHOjBPyTM6nCT686AfBFlDoSCwYeb4=; b=L3xSa6m854leDRuSRBwsJD7GmIMY6yta9tHLpKzrLpF2speuqaQSARg6jAkkfwfhfd /s2tHx64+RALIVaeh8L0l+4iesMbLfXOT6u5AfcK/236vgQ9ELX1S6mEjgjW0mSCF3u0 1vEVVQ6R7dStJmodme8Jaq2+GYRICP7/AtbwVE6/dy0JfPrgsdL6IwxmwLrTlI9sjxvz VVtgOvgZ28YZ4ZlnmHOvDifD/0OfMkTbzukYYxANTL2EwYkNlUUBkeOWCug4R7L6b29D jxbDlDadneOFKkU+aYc4wpt5glHUb2mju0cZwEPBuwHBtkZ82yuF3gTuvkq/8ZVlyLBm +0tw== X-Gm-Message-State: ALoCoQnLyCDz2yHXlOW1/sLt/15IjyidY8J5/+7TwMp/r+Ud7BXYOQ7cHEgfE3gMDoQ0LY0lewTU X-Received: by 10.152.22.163 with SMTP id e3mr21317816laf.6.1436879238173; Tue, 14 Jul 2015 06:07:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.206 with SMTP id q14ls40621lal.58.gmail; Tue, 14 Jul 2015 06:07:18 -0700 (PDT) X-Received: by 10.112.167.202 with SMTP id zq10mr36786024lbb.118.1436879238028; Tue, 14 Jul 2015 06:07:18 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id pt2si903480lbb.46.2015.07.14.06.07.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 06:07:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbbyj8 with SMTP id yj8so5806104lbb.0 for ; Tue, 14 Jul 2015 06:07:17 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr38506381laf.32.1436879237746; Tue, 14 Jul 2015 06:07:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2375914lbb; Tue, 14 Jul 2015 06:07:17 -0700 (PDT) X-Received: by 10.140.217.147 with SMTP id n141mr65322685qhb.43.1436879236532; Tue, 14 Jul 2015 06:07:16 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b24si956213qkh.67.2015.07.14.06.07.15; Tue, 14 Jul 2015 06:07:16 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 8D44D61E43; Tue, 14 Jul 2015 13:07:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DBF9F61CEF; Tue, 14 Jul 2015 13:07:11 +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 B5E1561E36; Tue, 14 Jul 2015 13:07:10 +0000 (UTC) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by lists.linaro.org (Postfix) with ESMTPS id 89BF361CC7 for ; Tue, 14 Jul 2015 13:07:06 +0000 (UTC) Received: by widjy10 with SMTP id jy10so98901387wid.1 for ; Tue, 14 Jul 2015 06:07:05 -0700 (PDT) X-Received: by 10.194.77.97 with SMTP id r1mr73736590wjw.98.1436879225695; Tue, 14 Jul 2015 06:07:05 -0700 (PDT) Received: from khorivan.synapse.com (41-172-94-178.pool.ukrtel.net. [178.94.172.41]) by smtp.gmail.com with ESMTPSA id lv8sm1922125wjb.41.2015.07.14.06.07.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 06:07:05 -0700 (PDT) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Tue, 14 Jul 2015 16:06:55 +0300 Message-Id: <1436879215-32173-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: Classification patch Subject: [lng-odp] [Patch] validation: classification: fix ODP_PMR_IPPROTO capability check X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.khoronzhuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 I suppose, the intention was to check only ODP_PMR_IPPROTO capability. Signed-off-by: Ivan Khoronzhuk Reviewed-by: Balasubramanian Manoharan --- test/validation/classification/odp_classification_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c index 502105e..6e8d152 100644 --- a/test/validation/classification/odp_classification_tests.c +++ b/test/validation/classification/odp_classification_tests.c @@ -807,7 +807,7 @@ static void classification_test_pmr_terms_cap(void) unsigned long long retval; /* Need to check different values for different platforms */ retval = odp_pmr_terms_cap(); - CU_ASSERT(retval | (1 << ODP_PMR_IPPROTO)); + CU_ASSERT(retval & (1 << ODP_PMR_IPPROTO)); } static void classification_test_pktio_configure(void)