From patchwork Thu Aug 27 16:32:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 52776 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id B7D3022DC4 for ; Thu, 27 Aug 2015 16:34:06 +0000 (UTC) Received: by lbck9 with SMTP id k9sf8464827lbc.0 for ; Thu, 27 Aug 2015 09:34:05 -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=lp1eKHpC+Z13mLn3d1+z+kZhYp74aM3RJVaCFl6gUmw=; b=L6g7b18C2exREoniblfO+SWGdikadYj3RDTEfkvH4ViJGnxxbwCCT+yeF2IpEvdrji S7TBjlkInk1YEpUHWtgDnzQLG2vAiz4PT2JldCFVGnGRWNrpslQxM1ZbLi4lWnphsls5 1jXhQmvgi1bkHKfbFDspaljBo876Q5t6VP4WVdNck08yR2sCeGry8vqj+IS5V+WBn2J/ LVY8e72WnQo3k4MGAOUO/6T+CI3zetxkl1W1VYsVY4rsbeqcO+oLvlZz93RLteLbwm57 GXSF4uTIbWO08ewG7Kd/qofTPQWuhCgV2assbSxu46BezjOJqDLtIpGps5b9xC88B8Po gd7A== X-Gm-Message-State: ALoCoQnjY3052tABfkFnqrXUthbppisflPv4BXtzK2Ffzjvq4dyfBQTpxvUsq91gQWNC7MO+z4n2 X-Received: by 10.194.71.39 with SMTP id r7mr1511379wju.0.1440693245410; Thu, 27 Aug 2015 09:34:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.227 with SMTP id n3ls118804lan.0.gmail; Thu, 27 Aug 2015 09:34:05 -0700 (PDT) X-Received: by 10.152.20.228 with SMTP id q4mr2637146lae.74.1440693245011; Thu, 27 Aug 2015 09:34:05 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id tp6si2731681lbb.97.2015.08.27.09.34.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 09:34:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbtg9 with SMTP id tg9so14990170lbb.1 for ; Thu, 27 Aug 2015 09:34:04 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr3073776lbc.32.1440693244908; Thu, 27 Aug 2015 09:34:04 -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.151.194 with SMTP id us2csp35558lbb; Thu, 27 Aug 2015 09:34:04 -0700 (PDT) X-Received: by 10.55.217.84 with SMTP id u81mr8116201qki.76.1440693243867; Thu, 27 Aug 2015 09:34:03 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 125si3083039qhy.7.2015.08.27.09.34.03; Thu, 27 Aug 2015 09:34:03 -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 01D0F619C0; Thu, 27 Aug 2015 16:34:02 +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_H2, 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 239EE619C9; Thu, 27 Aug 2015 16:33:07 +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 5FE56619C0; Thu, 27 Aug 2015 16:32:48 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id 950A4619B8 for ; Thu, 27 Aug 2015 16:32:46 +0000 (UTC) Received: by lbbpu9 with SMTP id pu9so14931357lbb.3 for ; Thu, 27 Aug 2015 09:32:45 -0700 (PDT) X-Received: by 10.152.121.37 with SMTP id lh5mr2933234lab.2.1440693165563; Thu, 27 Aug 2015 09:32:45 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id kb5sm703727lbc.16.2015.08.27.09.32.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Aug 2015 09:32:45 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 27 Aug 2015 19:32:39 +0300 Message-Id: <1440693159-8111-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440693159-8111-1-git-send-email-maxim.uvarov@linaro.org> References: <1440693159-8111-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 2/2] test: l2fwd: start pktio in burst mode X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" 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.172 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 Signed-off-by: Maxim Uvarov Reviewed-by: Bill Fischofer --- test/performance/odp_l2fwd.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index b25b978..64fc1b2 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -317,12 +317,6 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool, return ODP_PKTIO_INVALID; } - ret = odp_pktio_start(pktio); - if (ret != 0) { - LOG_ERR("Error: unable to start %s\n", dev); - return ODP_PKTIO_INVALID; - } - return pktio; } @@ -462,6 +456,14 @@ int main(int argc, char *argv[]) pool, gbl_args->appl.mode); if (gbl_args->pktios[i] == ODP_PKTIO_INVALID) exit(EXIT_FAILURE); + + ret = odp_pktio_start(gbl_args->pktios[i]); + if (ret) { + LOG_ERR("Error: unable to start %s\n", + gbl_args->appl.if_names[i]); + exit(EXIT_FAILURE); + } + } gbl_args->pktios[i] = ODP_PKTIO_INVALID;