Message ID | 1439990341-12037-3-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDX25FHYWQNBBEUF2KXAKGQERCN36TA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id EEFD622DB1 for <linaro@patches.linaro.org>; Wed, 19 Aug 2015 13:20:19 +0000 (UTC) Received: by lbcue2 with SMTP id ue2sf1483384lbc.1 for <linaro@patches.linaro.org>; Wed, 19 Aug 2015 06:20: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: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=SUw3WAVjEOqZztLA2cS51tXaTYVXwm8Eb/6lVw5oli4=; b=TYfvCOr7VJX/12CvQozffCpmrRZpoiPG4oSavuXejlWxgZrp2C5WMkTLqELT9IzwNm UDJoOnTeFGVX+jvlE3MRK7CjKoc22UbFAflx+8G8vm8N90DJ3vEF1UOrLz9FF8xYsJxC 3Ix+ByP7U/I1I3kkbNEfRFs1KiNhRzibP5ZzCTVlSjPblu54KANCdzv0cpq5xFeCq24Q FGyTIhAXYCJpXTXUZZrTasuy7NPEr/1u9PjqXqD1YVZ9jeHVPNspdxwc6pTxUiM1WPmu 4JIvaXOep1iffRJ4e1cTXcVWE7nifv4UMBJndF5w9Lmmm8iaTYQXL7blq3tYGT7mKmCT mlsQ== X-Gm-Message-State: ALoCoQkVjgAtm6eIURlOeOuktpU7c35KfultbBeokrf79+BL1+EG8yt/P1sxvSo0H1U8F7f9U3R5 X-Received: by 10.112.132.105 with SMTP id ot9mr2717374lbb.21.1439990418492; Wed, 19 Aug 2015 06:20:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.65 with SMTP id r1ls27052lag.31.gmail; Wed, 19 Aug 2015 06:20:18 -0700 (PDT) X-Received: by 10.112.55.33 with SMTP id o1mr10991002lbp.96.1439990418341; Wed, 19 Aug 2015 06:20:18 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id ac10si488399lbc.134.2015.08.19.06.20.18 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Aug 2015 06:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lahi9 with SMTP id i9so2805319lah.2 for <patchwork-forward@linaro.org>; Wed, 19 Aug 2015 06:20:18 -0700 (PDT) X-Received: by 10.152.170.230 with SMTP id ap6mr11240965lac.73.1439990418247; Wed, 19 Aug 2015 06:20:18 -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.162.200 with SMTP id yc8csp370448lbb; Wed, 19 Aug 2015 06:20:16 -0700 (PDT) X-Received: by 10.140.83.177 with SMTP id j46mr22980993qgd.46.1439990395548; Wed, 19 Aug 2015 06:19:55 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b66si996628qkh.23.2015.08.19.06.19.52; Wed, 19 Aug 2015 06:19:55 -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 7351E61FA0; Wed, 19 Aug 2015 13:19:52 +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 82EF961F36; Wed, 19 Aug 2015 13:19:47 +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 436B361F7A; Wed, 19 Aug 2015 13:19:44 +0000 (UTC) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by lists.linaro.org (Postfix) with ESMTPS id 5B72B61F65 for <lng-odp@lists.linaro.org>; Wed, 19 Aug 2015 13:19:19 +0000 (UTC) Received: by wicja10 with SMTP id ja10so8189808wic.1 for <lng-odp@lists.linaro.org>; Wed, 19 Aug 2015 06:19:18 -0700 (PDT) X-Received: by 10.194.120.198 with SMTP id le6mr23680909wjb.133.1439990358595; Wed, 19 Aug 2015 06:19:18 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by smtp.gmail.com with ESMTPSA id h9sm1039322wjx.20.2015.08.19.06.19.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Aug 2015 06:19:17 -0700 (PDT) From: Maxim Uvarov <maxim.uvarov@linaro.org> To: lng-odp@lists.linaro.org Date: Wed, 19 Aug 2015 16:18:56 +0300 Message-Id: <1439990341-12037-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439990341-12037-1-git-send-email-maxim.uvarov@linaro.org> References: <1439990341-12037-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 2/7] linux-generic: schedule pktin_poll: account pktio stop state X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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: <https://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="utf-8" Content-Transfer-Encoding: base64 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> 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.44 as permitted sender) smtp.mailfrom=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/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 532c264..84485a9 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -610,6 +610,9 @@ int pktin_poll(pktio_entry_t *entry) if (odp_unlikely(entry->s.inq_default == ODP_QUEUE_INVALID)) return -1; + if (entry->s.state == STATE_STOP) + return 0; + num = odp_pktio_recv(entry->s.handle, pkt_tbl, QUEUE_MULTI_MAX); if (num < 0) {
If pktio in state stop return 0, which means no packets was received but that pktio is good to be sheduled next time. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- platform/linux-generic/odp_packet_io.c | 3 +++ 1 file changed, 3 insertions(+)