From patchwork Wed Sep 13 10:00:17 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: 112422 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp766762edi; Wed, 13 Sep 2017 03:06:03 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB0XWSUoeKoeC11b6aUJj0zUak3A0PrWQA6/VWHuKumVrNRN8AHdyr+jYTN83upa7+HAyfy X-Received: by 10.55.22.218 with SMTP id 87mr23818056qkw.248.1505297163778; Wed, 13 Sep 2017 03:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505297163; cv=none; d=google.com; s=arc-20160816; b=u/pQwsMd+OlmczDC9KNsMvDXkbM11TKpBtZpLukiyqtl7k+gxZeU/HctR/bVcycL0D 25owRmH9Bj7Cu+Ceeb0MMpcHkoS8hQe5RcZ5DS/teefqKtUL4SZKLOkvlHpB6BQdIv39 e1CkQFiEOikfY3tRwdxMBfATI0wEBTEsf+EsRvHvcaVWcVcRheetKAMfzQb+m7eGUZVe iOjt17bPBTTo9hpU9M+ACzqIacDqvl9ke1u2PJfmufBjta7LP8Ou5jixtnzxM0eCDPFz JnrhhFt/jhGq25Qeako1e3Y5DVqarMEuFTkNV7xn7Mi/BCiSBjYiVakC7mz3EbiU/6QA OO9w== 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=bXSgd1PC0LWYUC4wjYPado3hBdFJ3QqbQRdv+672h6g=; b=EAC8qv0vv9aQe8OqY8AmUqgZXHtV3hbFzb9Kl4BEMDOHRS8sAhRxQgmr+btZzKKfvT Ku9hk5LFYlzXvaXxi0Wc+UvCGwBQ/Iy1LG6cLKV9zlHL7+OGUbQperddPrxA/eSPki5C 39D/gDNZyQyLEbFy4XTvPE6FbQALFpiAo2ipMgnr9HxEViL0chk5DubPYWAvQXoIEp2H uObJ0LlfAnFIt22Nz+D19V04YfoqZ7EdWrzxgvhBc2RTfySlRKSHaGzK8WwQZ9x4kPh4 /tsFTBS3wh5UO9kscujnrDKr+dCbkrLUlkpcVBNUdiwxx9dL8ozreSMNXwuv63zHjc2E whHw== 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 w1si14747149qtw.531.2017.09.13.03.06.03; Wed, 13 Sep 2017 03:06: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; 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 6D28861BC5; Wed, 13 Sep 2017 10:06:03 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 4703F62C5D; Wed, 13 Sep 2017 10:02:16 +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 D36B660C88; Wed, 13 Sep 2017 10:02:13 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 4838A60C88 for ; Wed, 13 Sep 2017 10:00:33 +0000 (UTC) Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 3900F5A05240 for ; Wed, 13 Sep 2017 13:00:32 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yezmNcpzpw-0Wv4J0o7; Wed, 13 Sep 2017 13:00:32 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rI47ysBqG0-0VuK4Tn1; Wed, 13 Sep 2017 13:00:31 +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, 13 Sep 2017 13:00:17 +0300 Message-Id: <1505296826-16698-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505296826-16698-1-git-send-email-odpbot@yandex.ru> References: <1505296826-16698-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v2 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: ca3c52d51e6e80ba4bde91670d8b48a8a7ae1500 **/ 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}"