Message ID | 20150401152956.GA16425@localhost |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDW4DOG33ALBBFXFUOUQKGQEWYNJVVQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B739A21416 for <linaro@patches.linaro.org>; Sat, 11 Apr 2015 10:08:23 +0000 (UTC) Received: by wgtl5 with SMTP id l5sf8978107wgt.1 for <linaro@patches.linaro.org>; Sat, 11 Apr 2015 03:08:23 -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:date:from:to :message-id:references:mime-version:content-disposition:in-reply-to :user-agent:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=nq9pTBwgEs9iw6mm61sZfAgXDbiPsIGNuF2A5j5Rf5Y=; b=LIlNFAYyzTC8waxLTqH75w8h55uzNPImDvn6jRRBkqfyzAERGNhzTRorxlFn/PidTQ /voDbTw+2zvyIyB0vWFh2/tPfyLWUdAqEk11k8eugUXipqTLgw+JUa98lKZLZr6Ub9uP Dz8qD7g/0R6psFRJKXeiT95eA/ZFWt9tVFRXE+m5lwogWCmqMAYdeGQVgWhKlV4cNMnM 1crgxrnAds4ycXiR3nHXzU9wUfSZqx133oLdbg/3glacYHF9jDwJVKV0NRySNqsvAi1y Yu0Lw7GDoc8hGq2VuTq9sfJVc4Pos1/if9/WYHmC8JrtvPO1syi/TzJ/2UryhwH1Ha2q cdqA== X-Gm-Message-State: ALoCoQlD4yiiYL/AsFoqelBgQIKQH/wWOy2yjRrlFhwQXXOPGqjQowpQw8eMeKBWtKogXfNMQUlk X-Received: by 10.112.46.172 with SMTP id w12mr954085lbm.18.1428746903028; Sat, 11 Apr 2015 03:08:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.172 with SMTP id p12ls556899lal.40.gmail; Sat, 11 Apr 2015 03:08:22 -0700 (PDT) X-Received: by 10.152.18.225 with SMTP id z1mr5108033lad.124.1428746902815; Sat, 11 Apr 2015 03:08:22 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id xg1si3518060lac.41.2015.04.11.03.08.22 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Apr 2015 03:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labbd9 with SMTP id bd9so28402055lab.2 for <patchwork-forward@linaro.org>; Sat, 11 Apr 2015 03:08:22 -0700 (PDT) X-Received: by 10.112.141.202 with SMTP id rq10mr5047945lbb.88.1428746902540; Sat, 11 Apr 2015 03:08:22 -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.67.65 with SMTP id l1csp235726lbt; Sat, 11 Apr 2015 03:08:21 -0700 (PDT) X-Received: by 10.229.249.6 with SMTP id mi6mr6949134qcb.24.1428746901319; Sat, 11 Apr 2015 03:08:21 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p9si4402815qca.25.2015.04.11.03.08.20; Sat, 11 Apr 2015 03:08:21 -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 ABBC261C99; Sat, 11 Apr 2015 10:08:20 +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=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_FRT_BELOW2,URIBL_BLOCKED autolearn=unavailable autolearn_force=no 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 02B286514F; Sat, 11 Apr 2015 09:52:21 +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 E901A64FBD; Wed, 1 Apr 2015 15:30:24 +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 DAB0764F46 for <lng-odp@lists.linaro.org>; Wed, 1 Apr 2015 15:30:00 +0000 (UTC) Received: by wiaa2 with SMTP id a2so71186176wia.0 for <lng-odp@lists.linaro.org>; Wed, 01 Apr 2015 08:30:00 -0700 (PDT) X-Received: by 10.180.103.166 with SMTP id fx6mr15913969wib.4.1427902199961; Wed, 01 Apr 2015 08:29:59 -0700 (PDT) Received: from localhost ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id jy7sm25942215wid.22.2015.04.01.08.29.58 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 01 Apr 2015 08:29:59 -0700 (PDT) Date: Wed, 1 Apr 2015 16:29:56 +0100 From: Stuart Haslam <stuart.haslam@linaro.org> To: Maxim Uvarov <maxim.uvarov@linaro.org> Message-ID: <20150401152956.GA16425@localhost> References: <1427895059-13898-1-git-send-email-maxim.uvarov@linaro.org> <20150401135736.GA13254@localhost> <551C0517.7030200@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <551C0517.7030200@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Topics: patch Cc: petri.savolainen@nokia.com, lng-odp@lists.linaro.org Subject: Re: [lng-odp] [PATCH] linux-generic: sched fix polling input queue 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> 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: stuart.haslam@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.46 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/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 15335d1..ae1de3c 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -685,6 +685,9 @@ int pktin_poll(pktio_entry_t *entry) if (odp_unlikely(is_free(entry))) return -1; + if (entry->s.inq_default == ODP_QUEUE_INVALID) + return -1; + num = odp_pktio_recv(entry->s.handle, pkt_tbl, QUEUE_MULTI_MAX); if (num < 0) {