From patchwork Wed Sep 20 09: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: 113091 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp439572edb; Wed, 20 Sep 2017 02:02:27 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAz309zGwxIzchYnWj0TuONY1XAiY+2NcVHqftH25u86UxromCFgojuZUQGrCnR4NcdPlMq X-Received: by 10.237.62.58 with SMTP id l55mr3530025qtf.30.1505898147508; Wed, 20 Sep 2017 02:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505898147; cv=none; d=google.com; s=arc-20160816; b=aHwPSOXeM31Kf+QtAvyhKmdadf1MJ1GoYivrvmv/uY9mTZ1StRmq9tYF+n64XU37L/ qYex6DrvRhxgtu+6yXwa5/qurGNIRHLe8ma9KxnPzLHIbjThroGK/flPpTLc1I/LbqTj RoQoLbQx+sGgWXMHoZDiIwLH+THwjBm5K/yEKsBgo9yhcTTSP/2lSHNzWvFSBGzfq2Or WyYZUXDqYKz2mY92TxUUFl9uTGVJXpEQOLRLga3mVZqr2qY3pvE/HMIVbFRuFziDijYv Q5BjVTV32V/iNiB4diM7n6b3kxEWFcGnMVbJJv8jH1rVdA4SZjnt1uRWAB8wg9hC9lm7 u4/Q== 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=478eZgyeD/x2oZE9ivwo2LhqfrXWiCpSu1e20SHiZts=; b=EVtJCnwMnx928iaIxvf46WrKZ4+jHLDg4pkaoUOS7lWVrGKwZurDnP7fdvW6+ZB2/W 723xApE7I8wMrITbJt9NoV/vJOEGNoEneTdLJLct14BsyuPTNk+6kpSiA6zxlxg0ee4W EvUE950XLYb1Sr64hkl0wViCNHPAmi3lAnXcpY4yoE/q+5Dq1NReZgNrFOy7iyMs2DXn 3+0hSvYbnrFjPDMVkwM+PQ/Nnh4VfE8ZDF9cPkcPjiUWDxpB/4Lf7ew3H+2nL+lqG0AK 7faLlAF++JlKMeqleNWxpdxino67zXV8aZr+qci2Gt7AC7av0Gplf0eubrEG+EWF3FrL F4ag== 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 r18si1442989qtr.513.2017.09.20.02.02.27; Wed, 20 Sep 2017 02:02:27 -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 2F68664456; Wed, 20 Sep 2017 09:02:27 +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 D1D8E60C95; Wed, 20 Sep 2017 09:00:42 +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 6FD0F60C0A; Wed, 20 Sep 2017 09:00:33 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 92B36608E0 for ; Wed, 20 Sep 2017 09:00:27 +0000 (UTC) Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:167]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 6DC955605AD5 for ; Wed, 20 Sep 2017 12:00:26 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pcXWrIrcUT-0QnO9D29; Wed, 20 Sep 2017 12:00:26 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Dmm7iA3uiT-0QN4b5Zm; Wed, 20 Sep 2017 12:00:26 +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: Wed, 20 Sep 2017 12:00:06 +0300 Message-Id: <1505898014-18011-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505898014-18011-1-git-send-email-odpbot@yandex.ru> References: <1505898014-18011-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v5 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: Bogdan Pricope Reviewed-by: Josep Puigdemont 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: c6a520126eff39b7ebce8e790fb960259ce8f812 ** Merge commit sha: 8d7f8c3de9639acb3a2b8eb8c3830c044eb6a437 **/ 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}"