From patchwork Tue Jun 2 14:46:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 49375 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9682020BD1 for ; Tue, 2 Jun 2015 14:47:35 +0000 (UTC) Received: by lbcak1 with SMTP id ak1sf42687440lbc.2 for ; Tue, 02 Jun 2015 07:47:34 -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=SKbvUWu7SftIx4U94aullKtNDFF5WczuQQFuWhInso8=; b=GgiE9oK1hYMSkdYcPoIAm00+jCzjyjes3gZT2kgqRKChxqYjn21JxThbEBkQhwQmhO 5HCViAb21Z4Sp8Pq1rJtmUOvmPvY+e2PgnsGWiJaesf/2uhGgh9BM5z1sGlpf0MdUU6D ufq0+gqnTzli8iJFg6X1Y+IqsHDGG/6FfS+liCoxGvayyNJ8FjdkJ1m1gnSsl+Zj7Cba /ngasbzD/9vqZ8lakq1NjkgM4gGXiXeVxcuXYX1F5hGRRLYYpYs3eF/eVFKNLkGAVREU 62Y8y8MGV0cUMUhKr6mAzTCIOvQzVIxobl9xUDJgvxpbfCjR/XxzwWaZMcipxSGxjyE6 hErw== X-Gm-Message-State: ALoCoQk1CL3x9zF8ZhYFS6YwJb50432BFOvaIOBvPUXFUU44q0bhe0oz/yY8ISlb8BsdIBITW33f X-Received: by 10.180.19.72 with SMTP id c8mr16830339wie.2.1433256454260; Tue, 02 Jun 2015 07:47:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.67 with SMTP id q3ls68984laq.78.gmail; Tue, 02 Jun 2015 07:47:33 -0700 (PDT) X-Received: by 10.112.163.35 with SMTP id yf3mr26118018lbb.107.1433256453959; Tue, 02 Jun 2015 07:47:33 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id jc5si15260585lbc.127.2015.06.02.07.47.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 07:47:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by laew7 with SMTP id w7so35293668lae.1 for ; Tue, 02 Jun 2015 07:47:33 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr27133667lad.56.1433256453525; Tue, 02 Jun 2015 07:47:33 -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 hn6csp3127088lbb; Tue, 2 Jun 2015 07:47:32 -0700 (PDT) X-Received: by 10.55.40.42 with SMTP id o42mr37988601qkh.73.1433256451929; Tue, 02 Jun 2015 07:47:31 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b109si15905311qgb.73.2015.06.02.07.47.29; Tue, 02 Jun 2015 07:47:31 -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 1ED2761ECF; Tue, 2 Jun 2015 14:47:29 +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 88D3E61FF8; Tue, 2 Jun 2015 14:47: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 52E7161E27; Tue, 2 Jun 2015 14:46:52 +0000 (UTC) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by lists.linaro.org (Postfix) with ESMTPS id ACC8D62094 for ; Tue, 2 Jun 2015 14:46:14 +0000 (UTC) Received: by wibut5 with SMTP id ut5so71819064wib.1 for ; Tue, 02 Jun 2015 07:46:13 -0700 (PDT) X-Received: by 10.180.98.103 with SMTP id eh7mr31618080wib.75.1433256373796; Tue, 02 Jun 2015 07:46:13 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by mx.google.com with ESMTPSA id xy5sm27241121wjc.35.2015.06.02.07.46.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jun 2015 07:46:13 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 2 Jun 2015 17:46:06 +0300 Message-Id: <1433256366-10099-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: pktio: do not dequeue from scheduled queue 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: maxim.uvarov@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.53 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 packet i/o test can create 2 types of queues: scheduled and polled. Do not do dequeue from scheduled queue. https://bugs.linaro.org/show_bug.cgi?id=1383 Signed-off-by: Maxim Uvarov Reviewed-by: Balasubramanian Manoharan --- test/validation/odp_pktio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c index 7c1a666..e1025d6 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -319,7 +319,8 @@ static odp_packet_t wait_for_packet(odp_queue_t queue, start = odp_time_cycles(); do { - if (queue != ODP_QUEUE_INVALID) + if (queue != ODP_QUEUE_INVALID && + odp_queue_type(queue) == ODP_QUEUE_TYPE_POLL) ev = queue_deq_wait_time(queue, ns); else ev = odp_schedule(NULL, ns);