Message ID | 1426517487-7124-3-git-send-email-ciprian.barbu@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC42RN5IWUGBBEO4TOUAKGQEYMHXFTQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 255C82142A for <linaro@patches.linaro.org>; Mon, 16 Mar 2015 14:52:02 +0000 (UTC) Received: by wesq59 with SMTP id q59sf27242564wes.1 for <linaro@patches.linaro.org>; Mon, 16 Mar 2015 07:52:01 -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:from:to:date:message-id:in-reply-to :references: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=1WeGzr3FWYcY8uWlZru4XijQUJBeHb3V+K6eVMdpcAE=; b=KJSw8xdnhX49yd42irswsRv//tu2h0n8+kM/gz401b+gz7rb2E+HhhD2mGIciS7YPp N7kIB3k/quwm/BrbUkw2RU+Dpnp9Q7ppK4SXLPcmdagoRbHWOEwMYIvoYtH40tWo9yCV +bVM5vviQ3CYe4OqK/3vTjx5Tw2kx2wboZMnmKvolMQ76I51swILjFCMKPN+rMzxJhrG lM/+sW/E+G8PYdwQUroQ5F819G1p9LNu7Z9aNadpFclsDw1UeuuM6UbgtpD4Bp/K0WFv ONtsSlX72pJJEWX+yh0CIA9ZS0KtZromnFrmWQPTp8XB6TP965lSkZzeK29uVTPjpbWV HKdw== X-Gm-Message-State: ALoCoQkzdMnoc+Y0Wr5RyUeT/yGkyGcIbwboMxStQpH9Z/ium4Bex4Troqx2d/c+tsySJlhsAso6 X-Received: by 10.194.95.67 with SMTP id di3mr9284918wjb.0.1426517521476; Mon, 16 Mar 2015 07:52:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.4.38 with SMTP id cb6ls580283lad.97.gmail; Mon, 16 Mar 2015 07:52:01 -0700 (PDT) X-Received: by 10.112.157.100 with SMTP id wl4mr56089547lbb.108.1426517521178; Mon, 16 Mar 2015 07:52:01 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id r6si8324511laa.53.2015.03.16.07.52.01 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 07:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lagg8 with SMTP id g8so42078432lag.1 for <patchwork-forward@linaro.org>; Mon, 16 Mar 2015 07:52:01 -0700 (PDT) X-Received: by 10.112.201.231 with SMTP id kd7mr35328810lbc.35.1426517521050; Mon, 16 Mar 2015 07:52:01 -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.35.133 with SMTP id h5csp2635080lbj; Mon, 16 Mar 2015 07:52:00 -0700 (PDT) X-Received: by 10.140.236.211 with SMTP id h202mr79162369qhc.88.1426517519783; Mon, 16 Mar 2015 07:51:59 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id w9si10167514qcj.9.2015.03.16.07.51.58 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 16 Mar 2015 07:51:59 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <lng-odp-bounces@lists.linaro.org>) id 1YXWN2-00025R-Fs; Mon, 16 Mar 2015 14:51:56 +0000 Received: from mail-la0-f42.google.com ([209.85.215.42]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <ciprian.barbu@linaro.org>) id 1YXWMp-00024G-HY for lng-odp@lists.linaro.org; Mon, 16 Mar 2015 14:51:43 +0000 Received: by labjg1 with SMTP id jg1so41992391lab.2 for <lng-odp@lists.linaro.org>; Mon, 16 Mar 2015 07:51:37 -0700 (PDT) X-Received: by 10.112.163.229 with SMTP id yl5mr55291143lbb.60.1426517497625; Mon, 16 Mar 2015 07:51:37 -0700 (PDT) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id ps2sm2236822lbb.20.2015.03.16.07.51.36 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Mar 2015 07:51:37 -0700 (PDT) From: Ciprian Barbu <ciprian.barbu@linaro.org> To: lng-odp@lists.linaro.org Date: Mon, 16 Mar 2015 16:51:26 +0200 Message-Id: <1426517487-7124-3-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1426517487-7124-1-git-send-email-ciprian.barbu@linaro.org> References: <1426517487-7124-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 2/3] linux-generic: queue: add queue_is_destroyed internal call X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ciprian.barbu@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.215.51 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 |
diff --git a/platform/linux-generic/include/odp_queue_internal.h b/platform/linux-generic/include/odp_queue_internal.h index 65aae14..9a0e94f 100644 --- a/platform/linux-generic/include/odp_queue_internal.h +++ b/platform/linux-generic/include/odp_queue_internal.h @@ -139,6 +139,15 @@ static inline int queue_is_sched(odp_queue_t handle) return ((queue->s.status == QUEUE_STATUS_SCHED) && (queue->s.pktin != ODP_PKTIO_INVALID)); } + +static inline int queue_is_destroyed(odp_queue_t handle) +{ + queue_entry_t *queue; + + queue = queue_to_qentry(handle); + + return (queue->s.status == QUEUE_STATUS_DESTROYED); +} #ifdef __cplusplus } #endif
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org> --- platform/linux-generic/include/odp_queue_internal.h | 9 +++++++++ 1 file changed, 9 insertions(+)