From patchwork Tue Nov 21 14:00:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 119367 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5312364qgn; Tue, 21 Nov 2017 06:08:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMZtreu/SLSMgjINqUAm006AtKaiPPk+EBAZ7cU9vo0ePkqXK9tiSylQpWcodSnSsqLu6lb1 X-Received: by 10.200.37.3 with SMTP id 3mr24386508qtm.21.1511273291702; Tue, 21 Nov 2017 06:08:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511273291; cv=none; d=google.com; s=arc-20160816; b=X0C3Rmg3+vVxFwwQ0yZvaPVEXXkQh6YiSq3sslwfSvEp+Za/UgQdcNlEFjWQqki5Ky hOI1E+l0wenIg4VM6gCzdN/dOsWh6EcreAe+CsKRT2qxYtA9WBxJclhqyJPKag9iOKvW DRZjSaU3gRjqt1w4WgsN/WZCQa1/gBrkRPYl8Pu8zxqpshJSr+nwcDCQ1ssuYKWuw59a jLvvFqcYaB7kbSC9IxS2q4V28glJxuaEG+liARnpr9tDXkHe3o0cpxqwrRk34xvrMt33 eQK74mAKjVXpogBPUh07YaVYcCWwvqv1rvVN712eVATyzJ2dojeywuSW5v5a/25+y7R6 eElg== 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:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=ioYRShx1MRkUs6bXHjIuCVDDrjQ3VPNoCpuPBl/gWbU=; b=xALOi8XdJsuDiu09mMyNNacJEstPEfogzA/l5vJDWl0f41baJnoC+6CNKf6ygr/5cq bAX417ooFuHuawvMk/EyIC5GeHHKD7lorMq4YC1Sa74D+yRjuQVI5b09W9lryKzG8PzQ 1G+Wuf8FnAsY1wTu8NmGYtsOlhH/ron2fwH3HBPV7xONSFy4XY1c9JanMq2cR8uRKSsg D+vJRaxejobMKsx2r+E3CL0CZvkRTnRRfwPyz2MzALxcRUimJ5rUweUbkVpk5nS2iFW9 r33CldulxcHp+WmuxxnifWVk/+Hdhzp0MQRYy2oE/DPOs/IkerpxEzUfvPKPkkWockBZ o3zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id d31si6094298qte.345.2017.11.21.06.08.11; Tue, 21 Nov 2017 06:08:11 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 46E1A60907; Tue, 21 Nov 2017 14:08:11 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 6D0FE60949; Tue, 21 Nov 2017 14:02:01 +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 D60346087F; Tue, 21 Nov 2017 14:01:12 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 1FF41605D7 for ; Tue, 21 Nov 2017 14:00:15 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 9516D134449C for ; Tue, 21 Nov 2017 17:00:13 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 3NiRgYwmb5-0DJCKYjT; Tue, 21 Nov 2017 17:00:13 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9eiNlUBoJ2-0DvCWQc4; Tue, 21 Nov 2017 17:00:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 21 Nov 2017 17:00:11 +0300 Message-Id: <1511272811-6276-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511272811-6276-1-git-send-email-odpbot@yandex.ru> References: <1511272811-6276-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 302 Subject: [lng-odp] [PATCH API-NEXT v1 3/3] validation: queue: refer to blocking level 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" From: Petri Savolainen Refer to the new blocking level capability and parameter fields to check that those exist. Signed-off-by: Petri Savolainen --- /** Email created from pull request 302 (psavol:next-lockfree-queue) ** https://github.com/Linaro/odp/pull/302 ** Patch: https://github.com/Linaro/odp/pull/302.patch ** Base sha: d4b364849c4abb4c71e0c5260e1a793ebb8dc97d ** Merge commit sha: fc00736d09bd0388db2bde3a9177edfd995eec67 **/ test/validation/api/queue/queue.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/validation/api/queue/queue.c b/test/validation/api/queue/queue.c index 1ec05b1fc..6b4877d9a 100644 --- a/test/validation/api/queue/queue.c +++ b/test/validation/api/queue/queue.c @@ -69,6 +69,8 @@ void queue_test_capa(void) CU_ASSERT(capa.sched_prios != 0); CU_ASSERT(capa.plain.max_num != 0); CU_ASSERT(capa.sched.max_num != 0); + CU_ASSERT(capa.plain.blocking_level >= ODP_BLOCKING); + CU_ASSERT(capa.sched.blocking_level >= ODP_BLOCKING); min = capa.plain.max_num; if (min > capa.sched.max_num) @@ -82,6 +84,7 @@ void queue_test_capa(void) name[ODP_QUEUE_NAME_LEN - 1] = 0; odp_queue_param_init(&qparams); + CU_ASSERT(qparams.blocking_level == ODP_BLOCKING); for (j = 0; j < 2; j++) { if (j == 0) {