From patchwork Mon Apr 11 09:11:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Garapati X-Patchwork-Id: 65492 Delivered-To: patch@linaro.org Received: by 10.112.43.237 with SMTP id z13csp1351063lbl; Mon, 11 Apr 2016 02:12:02 -0700 (PDT) X-Received: by 10.55.78.201 with SMTP id c192mr27640118qkb.9.1460365922112; Mon, 11 Apr 2016 02:12:02 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 2si19525753qhw.25.2016.04.11.02.12.01; Mon, 11 Apr 2016 02:12:02 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6DCB861E50; Mon, 11 Apr 2016 09:12:01 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED 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 CEB2F61E13; Mon, 11 Apr 2016 09:11:57 +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 472C961E1B; Mon, 11 Apr 2016 09:11:55 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 4CF2D61E12 for ; Mon, 11 Apr 2016 09:11:54 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id e190so145893874lfe.0 for ; Mon, 11 Apr 2016 02:11:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=00bWX+pdouHEAzH07ld5YRFQV7Pk+Ir5TxWlvXNLg+0=; b=EB4+zXmDpGhRuEw54s/4wZpm4WfsMWRaOSVIMJBkgNw7uhCub55+58dAsKQ1nX57wV 7a5IRgKhh6MvTykqP1VS77cE0NfbQnUQ7mR7mutWIDnjYOGPYxincxNBPfHnN2VrmgZ0 AvegBhEmzkbKFz5MQLU1bOBq70I8M5V3ZsBw7gHjc3nK8SHbe6wK11AZNpE2wO5PEd5V PS2GL0N6JZA8AfEuEFxn/W59xXzBkOL4jp1SBbDmxXAErA48RxMnyBcdgsve1is2Icrp bsi0neXPRSeD3jsyJ3OtHOzqbzc0EzH6xsEA3boW6A8jViNy2JnNqJMB/q4G49mtt7Ex plVA== X-Gm-Message-State: AD7BkJKdRAj2GG2TmkaYmsu8dWQ/fbMBN9OHmdnJvAEnP6mw3uClXJdtgh5eOjUIiSHPj6/kUk4= X-Received: by 10.112.143.40 with SMTP id sb8mr7898666lbb.83.1460365912167; Mon, 11 Apr 2016 02:11:52 -0700 (PDT) Received: from elxahtkds32.localdomain (host-95-192-223-10.mobileonline.telia.com. [95.192.223.10]) by smtp.gmail.com with ESMTPSA id s4sm3185919lbr.34.2016.04.11.02.11.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Apr 2016 02:11:51 -0700 (PDT) From: Balakrishna Garapati To: bala.manoharan@linaro.org, maxim.uvarov@linaro.org Date: Mon, 11 Apr 2016 11:11:49 +0200 Message-Id: <1460365909-15184-1-git-send-email-balakrishna.garapati@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH] test: performance: return when pkt alloc fails X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return over packet allocation failure. Signed-off-by: Balakrishna Garapati --- test/performance/odp_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index fe1c7b4..ca461e5 100644 --- a/test/performance/odp_crypto.c +++ b/test/performance/odp_crypto.c @@ -550,6 +550,7 @@ run_measure_one(crypto_args_t *cargs, if (pkt == ODP_PACKET_INVALID) { app_err("failed to allocate buffer\n"); rc = -1; + return rc; } else { void *mem = odp_packet_data(pkt);