Message ID | 1499205607-30786-3-git-send-email-odpbot@yandex.ru |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp56816qge; Tue, 4 Jul 2017 15:01:19 -0700 (PDT) X-Received: by 10.55.102.203 with SMTP id a194mr49303361qkc.180.1499205679009; Tue, 04 Jul 2017 15:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499205679; cv=none; d=google.com; s=arc-20160816; b=pS3IvgwszS98rPV+2ycB3uRdj3LuTuBn744T9AvM1DnSTIw9d6puJLuu6oseDSn5uZ gx/92K51q7VOmwic+E88NAHKojU+dceTgnJNaiPHFdqb2HmvBIROtYwFqsuB4yqPuFed +8ov2S57TY1mBOPkcOxXP/FaXSyZY/VTS2szVVkd4T7vBIrB21bT2yAVXCuLagM3XIUP IyJMWpgo8+QLqO4iwIKpRoeEOAEue3aXTUyNvA7k2+Sn7mPGuvymyR+l8oxhUjHMC/4s oUqPcGEOZboYJRpI1aUAUKqDlhZGANDHTRrCIlWgO9GbrxxR4dWJeBVwzn/D8MD7BmfS 9aBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=eWmZ8GQvFFZauLHHwykN1M56jEC69xM6/EqouuzHY5I=; b=CdyCzsAfxezN9Nd8BnpHzdycJ69Unz84ZFJcdyGWHJAq/4/sPhojaUkyuLItoGgU/+ MxGiHClKn8XS3Q4400xUMZlOBLOF3qS4rRPDGhDzc9UZSFqtn2Gd8lXvUHMsTvofZXpJ aoRI0Ukm/oTLvj+v0MqlMu/b8Slzdd20PVBI9lkxG2Dq/7tbe2ff8G1g33PtYfhDHdfo FCa+jGHt7I3LvgmsdaPyfYWZo7kFMoMI7LqNEDIYwKRc3b1dupDVaIh2bHyBpCPF6MyP WjDA4hYH4z07G0M++rGBVW7zg9wTu28GT8dZJ0deGjwlRre4xpt8MT/MPqe+bkgLeUoW 0Gnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r88si18697518qki.306.2017.07.04.15.01.18; Tue, 04 Jul 2017 15:01:18 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id A8A4E60C0A; Tue, 4 Jul 2017 22:01:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0E1FA60C12; Tue, 4 Jul 2017 22:00: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 4A9996071D; Tue, 4 Jul 2017 22:00:15 +0000 (UTC) Received: from forward4m.cmail.yandex.net (forward4m.cmail.yandex.net [5.255.216.22]) by lists.linaro.org (Postfix) with ESMTPS id 331746018A for <lng-odp@lists.linaro.org>; Tue, 4 Jul 2017 22:00:14 +0000 (UTC) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:7]) by forward4m.cmail.yandex.net (Yandex) with ESMTP id C696320F6E for <lng-odp@lists.linaro.org>; Wed, 5 Jul 2017 01:00:12 +0300 (MSK) Received: from smtp2p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2p.mail.yandex.net (Yandex) with ESMTP id 8CCF61A80054 for <lng-odp@lists.linaro.org>; Wed, 5 Jul 2017 01:00:11 +0300 (MSK) Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id b3wfOILtJj-0BPGwnXi; Wed, 05 Jul 2017 01:00:11 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot <odpbot@yandex.ru> To: lng-odp@lists.linaro.org Date: Wed, 5 Jul 2017 01:00:02 +0300 Message-Id: <1499205607-30786-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499205607-30786-1-git-send-email-odpbot@yandex.ru> References: <1499205607-30786-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 67 Subject: [lng-odp] [PATCH v1 2/7] linux-gen: pktio: ipc fix error check X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
Series |
[v1,1/7] linux-gen: pktio: ipc fix send return code on tx
|
expand
|
diff --git a/platform/linux-generic/pktio/ipc.c b/platform/linux-generic/pktio/ipc.c index 1a2a37f2..7a054962 100644 --- a/platform/linux-generic/pktio/ipc.c +++ b/platform/linux-generic/pktio/ipc.c @@ -401,7 +401,7 @@ static void _ipc_free_ring_packets(pktio_entry_t *pktio_entry, _ring_t *r) while (1) { ret = _ring_mc_dequeue_burst(r, rbuf_p, PKTIO_IPC_ENTRIES); - if (0 == ret) + if (ret <= 0) break; for (i = 0; i < ret; i++) { odp_packet_hdr_t *phdr;