Message ID | 1439550184-28383-3-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDX25FHYWQNBBQEWW6XAKGQE54MBVUI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id 33B812031F for <linaro@patches.linaro.org>; Fri, 14 Aug 2015 11:04:33 +0000 (UTC) Received: by wicul11 with SMTP id ul11sf5338661wic.1 for <linaro@patches.linaro.org>; Fri, 14 Aug 2015 04:04:32 -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=ZOYdg0QAiGb9fL4kke357LL3V6HLw4c6zg3jmiydqvJCP+R9CGWnVo3XNZBUeChnLZ vT5eppNa8EJqmNdnBvKmj1UWz3oiGVJ+welFQaY53MJGkfP97fZPG/MVHlgvxq1AbUmz WrFCekt+D8OujBc3tITQjeo9C0v7OjWEoLFPK8JxEofX9VlwmmpQxnKsXPOKz2RhLqiv bU+MFm8BNtO5CMib0tNnG2xsgfmZoMbk2pB2u5UCFDa6w+fGEj9IOGXXydBfOGZochuH 38K/vldFQJ/lTPYiLVHfsM/bAup3RQUEWXyTulUNQyClzdOXjoT2Ok0IQpBawBdZdqWh 3Bhw== X-Gm-Message-State: ALoCoQmiwpZgxQKAuBAwRCLtvwAbfzoEKQNvgw8NxQe9tLstEgff8Eulv/gOph6IVXEWtxMPkmYa X-Received: by 10.112.172.70 with SMTP id ba6mr5538195lbc.1.1439550272463; Fri, 14 Aug 2015 04:04:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.139 with SMTP id o11ls349557lal.80.gmail; Fri, 14 Aug 2015 04:04:32 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr39304743lac.11.1439550272195; Fri, 14 Aug 2015 04:04:32 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id le2si5714726lbc.154.2015.08.14.04.04.32 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 04:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbpu9 with SMTP id pu9so43301069lbb.3 for <patchwork-forward@linaro.org>; Fri, 14 Aug 2015 04:04:32 -0700 (PDT) X-Received: by 10.152.88.78 with SMTP id be14mr42588497lab.29.1439550272094; Fri, 14 Aug 2015 04:04:32 -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.7.198 with SMTP id l6csp1531481lba; Fri, 14 Aug 2015 04:04:30 -0700 (PDT) X-Received: by 10.140.150.3 with SMTP id 3mr52748017qhw.94.1439550270216; Fri, 14 Aug 2015 04:04:30 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 72si8874585qkz.106.2015.08.14.04.04.29; Fri, 14 Aug 2015 04:04:30 -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 3931161ED9; Fri, 14 Aug 2015 11:04: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 DD55261E89; Fri, 14 Aug 2015 11:03:25 +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 4719861E62; Fri, 14 Aug 2015 11:03:21 +0000 (UTC) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by lists.linaro.org (Postfix) with ESMTPS id 2BACC61DE1 for <lng-odp@lists.linaro.org>; Fri, 14 Aug 2015 11:03:20 +0000 (UTC) Received: by wicja10 with SMTP id ja10so14600659wic.1 for <lng-odp@lists.linaro.org>; Fri, 14 Aug 2015 04:03:19 -0700 (PDT) X-Received: by 10.180.208.42 with SMTP id mb10mr5786161wic.34.1439550199470; Fri, 14 Aug 2015 04:03:19 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by smtp.gmail.com with ESMTPSA id c11sm2538630wib.1.2015.08.14.04.03.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Aug 2015 04:03:18 -0700 (PDT) From: Maxim Uvarov <maxim.uvarov@linaro.org> To: lng-odp@lists.linaro.org Date: Fri, 14 Aug 2015 14:02:59 +0300 Message-Id: <1439550184-28383-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439550184-28383-1-git-send-email-maxim.uvarov@linaro.org> References: <1439550184-28383-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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.217.177 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(+)