From patchwork Thu Sep 14 03:00:06 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: 112494 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp264671qgf; Wed, 13 Sep 2017 20:01:36 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCMOmARVQQRd3EwgHOag0ScSpngHgMZFMBMPCJz+/9xZYsWL/N7Lzjwf5NtclbRwhxYp6hm X-Received: by 10.55.121.194 with SMTP id u185mr797053qkc.101.1505358096794; Wed, 13 Sep 2017 20:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505358096; cv=none; d=google.com; s=arc-20160816; b=c+14M2y1ZmxI5eM1O6XzaRvne2qFyb6ACUr9QCpnZMGo6CWx0QK7uhribTKGi3gsO9 VbPKxAWQL1Ory9FZ3//9dLYttQ6doWy5bN9j5JC5UnMg6fRHsVhfK64SKjrSLuXJojtT bz77LbIiunbO9T2hx4TaxVm5Bc1xKU9Gd2ypPhGrysHMjiu93rN7XhvNzSz1MMWbDzfy KXs/LUt/liEJ7FThMe908TLLXCEMr5eRByGG4qOX+r+GKccETAsN8qT4XYUNiD/QnlZc Qo+EsOJuQnnrTCw7E5SzBK+lB8vXkwQq/dKQM77hHGMZnd9FpXHVsiBFgp1n9XxDASWv LBCQ== 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=1ZTecWb6H8YEDNQiAIDYbOuQ1wMpPy/a2hwV+1mMbTg=; b=aG7cE4xq0qegkGANO0Gyo0VbrxexG3CqgPqxMP1BFboL4VE3iQLeS3BC3QzMkmGmLA s7koeDVm4qcI1OWoAs24sCWTNx4sV7BzjeNu/jPdhQevYleq2w2eOuQFZzMlyxYndS1a 8WRT9N72c2EqGFPBbc1r3iEC1wAVxK0H0wlDrQPHDa4C1mNleq9EoBuVKVuvVOpcUGoD s2q7tNWtRU/CZyi+vwBp1WEDEZXYIgqi2j3wi8ZrfLkdhO7Hszz/giK7pOL4/P2x2esc WN1TwU8AQ9NJHIhgZt2OXymF1Aqfx76fHyZcMAiT967VYMC8BQt2bV/mMsicccKh+wIH Se7Q== 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 l11si16367064qtl.0.2017.09.13.20.01.36; Wed, 13 Sep 2017 20:01:36 -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 7B87A60B45; Thu, 14 Sep 2017 03:01:36 +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 9F76860BDB; Thu, 14 Sep 2017 03:00:34 +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 064B4609ED; Thu, 14 Sep 2017 03:00:29 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 9C150609DB for ; Thu, 14 Sep 2017 03:00:27 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 3437D185F7D for ; Thu, 14 Sep 2017 06:00:26 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 5NPJMFekVj-0QPOCqdE; Thu, 14 Sep 2017 06:00:26 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id zmNnunofyZ-0POK3Njc; Thu, 14 Sep 2017 06:00:25 +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: Thu, 14 Sep 2017 06:00:06 +0300 Message-Id: <1505358015-27878-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505358015-27878-1-git-send-email-odpbot@yandex.ru> References: <1505358015-27878-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v3 2/11] 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: a25c44f448c9f01c48cfb51f6350d317baab8700 **/ 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 130a3a84..0c464f70 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}"