From patchwork Tue Sep 19 03:00:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112964 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4397882qgf; Mon, 18 Sep 2017 20:02:32 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDEakl8ISl6u2maeu9Vf2m3nA4ErfUKfFENgXgyC3ZkfQqHIEmoG6jzdbqn51T2X8vElwwn X-Received: by 10.200.4.169 with SMTP id s41mr47548925qtg.132.1505790152052; Mon, 18 Sep 2017 20:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505790152; cv=none; d=google.com; s=arc-20160816; b=ApUO7X4/asYSGcxf6fyHQQ6k7IZyS+Z+QDHBo5Fu39krkKAY7UmYM19OCYcAqdfurt C5z4+rlc+fzCTsB2qdgsVv4q/OPnQzzIMuzMUtSvpqk+Wzrzz8tGr2nRbpuBtxG4ZBsk HEHlpcn8wE1fEtDfBEYwCpDtO0XAESDTRPN4hjsXA0dG0sDcBEWYvyqm6a+99pa93h42 EeY4Xol9XLgxI5OHE0iIS3kpFtM+1bZIPrF9Wrdd/K6WUtVYosrEaN/28jukVad/XM00 w+fJ/GbOPWa7XD8ptsD1/D3ZWS6wBCa3OL3SKyr5H4807DpbNhDn5pRG1dXZOFKJ9T/W PA3A== 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=TEPyCE2luaqCagNzEF4TV9uaLEhlK1A0ppewtAkbwME=; b=qq8Nx5TQW0j58u5ya7JtPXhuC0j3qB/zuKcmmER03mPOHzwqiTi75ucSTJkwcu0Bn1 FFIVGU9zVDzCTRtGFKMtKdRHWeIy5OWyPDd2cE6JUCA9AYlAYvSTcLdALwWdJDO0mxiW LWHW4KZEe/s2qkr+w3U4wyBrrTemE5KmbtK0Ir9iFySyijQGCy48QqFYaPxHHrfo00FS cG2M9gtzOIpYESrAtDL9jq1e5h5fYuRkpVjtwpFLMDhsuiJVby4REslcoZ2EV/B62grJ MjfVVn9Lt882KGia+hc1HG0JpLvTOpIh7O//3/Yc4rX12daoi/PSKyiGfSGLPs1XnrXe qe8Q== 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: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f2si3454736qtl.481.2017.09.18.20.02.31; Mon, 18 Sep 2017 20:02:32 -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 8C0BD62D1B; Tue, 19 Sep 2017 03:02:31 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 1D7E861D00; Tue, 19 Sep 2017 03:00:49 +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 0975661D00; Tue, 19 Sep 2017 03:00:39 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id D317760F1D for ; Tue, 19 Sep 2017 03:00:34 +0000 (UTC) Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 31D361243987 for ; Tue, 19 Sep 2017 06:00:33 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback9g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id A7OZYHArW8-0XcG6Uqj; Tue, 19 Sep 2017 06:00:33 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X7vK4VOjbe-0WRii3xi; Tue, 19 Sep 2017 06:00:32 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 19 Sep 2017 06:00:16 +0300 Message-Id: <1505790024-16070-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505790024-16070-1-git-send-email-odpbot@yandex.ru> References: <1505790024-16070-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v4 2/10] example: l2fwd_simple: disable socket pktios 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Yi He l2fwd_simple_run.sh waits 1 second to allow test application to forward more than 10 packets. It works in case pktios are listed statically and pcap takes precedence over socket pktios. But with dynamically registered pktios the order was not guaranteed and socket pktios may take precedence over pcap pktio, which spent more time in open operation and caused this test failed. Disable the socket pktios since they mistakenly take too long time in open operation, future code refactory should solve the problem thoroughly. Signed-off-by: Yi He Reviewed-by: Brian Brooks Reviewed-by: Honnappa Nagarahalli Reviewed-by: Kevin Wang Reviewed-by: Bill Fischofer --- /** Email created from pull request 139 (heyi-linaro:modular-pktio-ops) ** https://github.com/Linaro/odp/pull/139 ** Patch: https://github.com/Linaro/odp/pull/139.patch ** Base sha: a1f50ad720e11a54b13c4786cad4687cb5c4ec2a ** Merge commit sha: 407fcfe1baad9b95b5374f13221abdf50b8d6089 **/ example/l2fwd_simple/l2fwd_simple_run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/l2fwd_simple/l2fwd_simple_run.sh b/example/l2fwd_simple/l2fwd_simple_run.sh index 130a3a848..0c464f70c 100755 --- a/example/l2fwd_simple/l2fwd_simple_run.sh +++ b/example/l2fwd_simple/l2fwd_simple_run.sh @@ -6,6 +6,11 @@ # SPDX-License-Identifier: BSD-3-Clause # +# Disable socket pktios since their open operations +# mistakenly take too long time +export ODP_PKTIO_DISABLE_SOCKET_MMSG=1 +export ODP_PKTIO_DISABLE_SOCKET_MMAP=1 + PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit` echo "using PCAP_IN = ${PCAP_IN}"