From patchwork Wed Aug 23 05:59:59 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: 110713 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3671669qge; Tue, 22 Aug 2017 23:02:02 -0700 (PDT) X-Received: by 10.55.175.67 with SMTP id y64mr2058479qke.130.1503468122676; Tue, 22 Aug 2017 23:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503468122; cv=none; d=google.com; s=arc-20160816; b=vISAtv67FxN2MB7qyVsuAQeWyLu1EBhCVtpuXHDvxUo5dOlmoB5W3sXpYhxduPJjuR GGxeLzyfx0Tr3Jd3JimXHmfvcLTmcVzlIm2WCqK9cVpJzBWW0yiHG8iXVcDrjDcHS4SP Mi1ml1yw4ZUTRmi2dL743Gb2r8qqjtYlxCoq8QUSLZZZMCSHOsLOxtCtMV2I5zqinCCy BozydH/piDsOUJTwo5U4Lp3zmc24bAPdaVH293QhUfgFEejwQp7+px/IJs3f9z8YSwGm wVQLZtZDi5zJBGeGDKWg0J3J4CDMVTATsv2WKYmMc3uLRFZeAG0mGKqsj3hiMk8n55di kJtw== 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=4qyVz7p394aBbT5MdXh082B9uVq5HwkrLYbpzBoLhmI=; b=GcIMbxhjy3h3BQ9/vI+gC4kphhnJQLxwqIuymCIqhsJP0D/sq8PPCZx/HwJ8s2j2fj 3aq7M0otc4ZQHj1K8LHQ8DmpE016WWxDLHJ+6QOfoGnzi0lNwlECQ+CDjvGXX0yitVkt tZcpJbcj3fSzXor9TClT0uK6KSQ43VWSRhQLSBzhvCdL2p9nGBAZmOkj5opOrszYX0aE jCnMm8FAP3msHSAPKQkUwv7erLXcrQvpnU3KDOvjRqwf50nZP3124P0WUr5MqYYQlSaN abedHjblQs4pj0Jl4TdVkolD6/koDfCoFR5/q8L0iCjhnByWOoDC1Ji2raB8UzOX6s6I gAig== 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 b45si763831qte.223.2017.08.22.23.02.02; Tue, 22 Aug 2017 23:02: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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 44E306448C; Wed, 23 Aug 2017 06:02: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=-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 97B57644AF; Wed, 23 Aug 2017 06:00:33 +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 D1A2B644A0; Wed, 23 Aug 2017 06:00:25 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id B09666447C for ; Wed, 23 Aug 2017 06:00:19 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 2522D5603A5C for ; Wed, 23 Aug 2017 09:00:18 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xlslMER7Ge-0IaCe6hP; Wed, 23 Aug 2017 09:00:18 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id QeRkbDFm9Y-0HLOdTY8; Wed, 23 Aug 2017 09:00:17 +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, 23 Aug 2017 08:59:59 +0300 Message-Id: <1503468007-12911-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503468007-12911-1-git-send-email-odpbot@yandex.ru> References: <1503468007-12911-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v1 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 --- /** 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: 3cdc8a07993b93b145dc3b4a373b5ebc33bae882 ** Merge commit sha: a87822f157888ef3269a7b8b3f38c63ecc111669 **/ 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}"