From patchwork Thu Sep 14 15:00:06 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: 112564 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp845285qgf; Thu, 14 Sep 2017 08:04:59 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCT8F+nr6b7rzGWlt+5ijY9X9UZ4cVMI4C98J/DWBbuUR38oAmo8ZGjCb595DRtfKYLWQP8 X-Received: by 10.200.25.246 with SMTP id s51mr30288186qtk.70.1505401499075; Thu, 14 Sep 2017 08:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505401499; cv=none; d=google.com; s=arc-20160816; b=tT/fOx+GJhJ19QlFFvkNMQCeObeAPUgWVCPhK59hH8AcPdXRgQ+Q1vIVqaa7LukM4J LkeLJQSktzyMnJ7VShlw2giGYUR21NwdoQukyhGmm+zQd1rw23uzv9ZQqZxsffx+Cgw3 SBn7UbyCMwQrhxIDOXlxHpsl2LZjg4foU8Yd8A3AX0G/j82Stt3Xc3nTCcC6vKE7V1qw 2GgGcPiWPJ6Wr1jKEn3INbj+5QH7yhwNslaILYqzlmEGQtzs+Gcs415Mgi6i6D+BXRM6 Atxf5mVsqsU1Z9cIpsE5K2ZNQoTjmw5vYWzzebrvN+8p54j+6Rc9rMRT0l7mAgX/+V3v Yj6A== 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=eFXgP85hLvdvFiJMO/nCt8g6OIjueyI+07jKCZS/m8w=; b=ZBi+NA6TKR9CWuTX/1WW8EDL2xao/qmFyjTQc91YoMTxE1hsEP84Q6tejdzHL3Hx4R vOmtJSyiwMqcev7y92n7KRWNAUc0VNm+3KyR7RPjFmfatDJRhVBYWJBdAmh4Af0hhJl+ +rwwd9X+ukNZ8Fj+epaq9Ooa/mponxWl2YLwtJ1vHD5l7VCik7fedCuEh5G6PPtSnKb3 rNT2Wr0GVEF830NKCCoAkWpK9fax8F7mmdl86YxkpUAZJe1FHwE/CGSWQmtNipzZd/W5 +qkP9PH8YRoSVP2sBaX2mHlxLVuVfhuXQLHzw4rxMYz2mK4sy58FGUe32ZWH6blzDQzx idcA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 11si17075591qki.338.2017.09.14.08.04.58; Thu, 14 Sep 2017 08:04:59 -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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id A150F62CE2; Thu, 14 Sep 2017 15:04:58 +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,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 7326F609FF; Thu, 14 Sep 2017 15:01:02 +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 4A0D46097D; Thu, 14 Sep 2017 15:00:27 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 76A8560889 for ; Thu, 14 Sep 2017 15:00:24 +0000 (UTC) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward101o.mail.yandex.net (Yandex) with ESMTP id B7ADB1342695 for ; Thu, 14 Sep 2017 18:00:22 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0WUXJH81HU-0MaiG9DZ; Thu, 14 Sep 2017 18:00:22 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id gNZkqRzw9k-0M7uUP0A; Thu, 14 Sep 2017 18:00:22 +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: Thu, 14 Sep 2017 18:00:06 +0300 Message-Id: <1505401213-7265-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> References: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v11 5/12] api: queue: change order lock count data type 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: Balasubramanian Manoharan change order lock count data type from unsigned to uint32_t Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 160 (bala-manoharan:api_sched_order_lock) ** https://github.com/Linaro/odp/pull/160 ** Patch: https://github.com/Linaro/odp/pull/160.patch ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1 ** Merge commit sha: 438a3bab5df9c05dc06f0b4e4b22c0a7db0864fd **/ include/odp/api/spec/queue.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 9dd0a5618..23261de2b 100644 --- a/include/odp/api/spec/queue.h +++ b/include/odp/api/spec/queue.h @@ -106,7 +106,7 @@ typedef struct odp_queue_capability_t { uint32_t max_queues; /** Maximum number of ordered locks per queue */ - unsigned max_ordered_locks; + uint32_t max_ordered_locks; /** Maximum number of scheduling groups */ unsigned max_sched_groups; @@ -393,10 +393,11 @@ odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue); * * @param queue Queue handle * - * @return Number of ordered locks associated with this ordered queue - * @retval <0 Specified queue is not ordered + * @return Number of ordered locks associated with this ordered queue + * @retval 0 Specified queue is not ordered or No ordered lock associated + * with the ordered queue. */ -int odp_queue_lock_count(odp_queue_t queue); +uint32_t odp_queue_lock_count(odp_queue_t queue); /** * Get printable value for an odp_queue_t