From patchwork Mon Jan 1 21:59:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123080 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8275390qgn; Mon, 1 Jan 2018 14:02:13 -0800 (PST) X-Google-Smtp-Source: ACJfBouBOTBTTNAfm3YZW7U906jeAHzbh4j+DPTs9+iq9F2KpbFngnzUs4p7mmHW9Rzgew4ITjtu X-Received: by 10.55.53.213 with SMTP id c204mr34937940qka.219.1514844133490; Mon, 01 Jan 2018 14:02:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844133; cv=none; d=google.com; s=arc-20160816; b=o0QwrSa1LhDCPDFRqNfnxu74MVxQ9QulVn5b2tWxyhvRhwnxirf9M4Ym0keVkehYfi axwf7/hOfrxlku7yWoAEhXSxf9EAhdrAA7Sv+jsTXHunrv8hwZHj/+zZSbBjpnDGWLNQ Jew0lcA8a1vydgT+llYpQ1R0e9UjOLIPE36QopmVB8OffMj7a8nfGw5i3WwZ42KhV4HM GKoeq7WavyZGUQOhU6dROV8ED2XwBESjUG7cMEguNONNZOgNMIfc+Hw8HNb4Mf0VkyNn G78IskS2d9rBBJhkPmVAusqaySqLbniPa79aPjHTVyDl3gfiExWkiASiPSB4ZgZKNm0u laDw== 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=bZOaifIfgx3wYwxbvb1H25KkLVdLpv6yLgavHq5qcmw=; b=iLooktaJqMcfGKY1D/D5sH6RsW8wxJrQDuDreSgs/wF8keHAaYpUL3+VzsVyBDHcDT Dt3bcZ3oWwTRr7IKuIGkQtcHurRXRjAtE3YhntfnE8+oY2YNegvmp0CRzHeLHI+DDQNf giaeJDx2vgRD39P0ulOyYmFTiAKPxfweMJM3p64DBFDnBR4p0TAS8IrkRf9MdbQBCsae MbzCKyKXSgsSE3QgLrQs11AYAukGkUeMbrm5gWEQtB4Sn9FJDSbwlYq1ahChAOkdp96Z f6uLLl3OFcc6L0A+uBqlDzVBCmkRL5+vxjDVHFb1hRyfinhEdws+NLZMkRQoVmo6uOgH wJVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id w190si698260qkb.132.2018.01.01.14.02.13; Mon, 01 Jan 2018 14:02:13 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 1129C616E8; Mon, 1 Jan 2018 22:02:13 +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, 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 DC9206089D; Mon, 1 Jan 2018 22:00:31 +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 AB6AE6087F; Mon, 1 Jan 2018 22:00:14 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id BF3F560848 for ; Mon, 1 Jan 2018 22:00:10 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 70089701EA3 for ; Tue, 2 Jan 2018 01:00:09 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id VXs0xNqq65-099qiiTb; Tue, 02 Jan 2018 01:00:09 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-08PubD04; Tue, 02 Jan 2018 01:00:08 +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, 2 Jan 2018 00:59:57 +0300 Message-Id: <1514844007-22122-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 1/11] helper: link against libpthread and libodp-linux 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: Dmitry Eremin-Solenikov libodphelper.so uses symbols from libpthread and libodp-linux.so, link it aganst those libraries. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ helper/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helper/Makefile.am b/helper/Makefile.am index ee1c17d6d..ebb67346c 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -10,6 +10,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/platform/@with_platform@/include \ -I$(top_srcdir)/platform/@with_platform@/arch/@ARCH_DIR@ \ -I$(top_builddir)/include +AM_CFLAGS = $(PTHREAD_CFLAGS) AM_LDFLAGS = -version-number '$(ODPHELPER_LIBSO_VERSION)' @@ -60,4 +61,6 @@ __LIB__libodphelper_la_SOURCES += \ linux/thread.c endif +__LIB__libodphelper_la_LIBADD = $(PTHREAD_LIBS) $(LIB)/libodp-linux.la + lib_LTLIBRARIES = $(LIB)/libodphelper.la From patchwork Mon Jan 1 21:59:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123078 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8273764qgn; Mon, 1 Jan 2018 14:00:30 -0800 (PST) X-Google-Smtp-Source: ACJfBosu2Mbx/z59/xl5maKkuzSpua7leOAAHeAFV9wVfnfisHq4I6zIMTlxV5qLLtnSXdoviE6n X-Received: by 10.200.52.137 with SMTP id w9mr58658986qtb.290.1514844030547; Mon, 01 Jan 2018 14:00:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844030; cv=none; d=google.com; s=arc-20160816; b=jz2nV3qfDI1YHTJdm6ne4gOtszLWa+PhtCIoxlzYxF7WTyV8pkuZJsmZMSuyGk/v0w ULBfPPPgF4Qtp3vF/h9TWNgmSlmXIablvBieoZab+nmZ7picR1YY89a/R0R/kcvfS0x+ 2xIWOMTlB5HkvI2oGfZjaJCE5Hfh9un+C03Yq2NnWwppHHMx4/FpwfnYHk3GAJAFEi+D 8IjGSQ2o4g+t+59k8BB5kQGPcFQQhxluGHziCPSUE7FqcQXkRBOOrVbo9kMkj6sWUpJ3 eCTYvHmQP7WqqMlHVrAFsUmWJ5nab+C45tNcACXB+iozuPocxM3AuTQKNYRv5fQJfp2T PwDQ== 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=+PTiS8P1dl7yNRjbWnl5/mZTcc5jPxk9pfdfYN7ehIM=; b=TzyFEv3vfEWvaJ9LMxz7grsrA+YlMXgXSHFwOsVyBV3iDtPLaA+suCqS1c/wAKK2SX r6isQuraspR09nEt9l0wPYRRtzFkNx4CAT2Hvxh6Wc8Xx4dUmY14btz0zR37A/IEVSjv 9FHYXZAnlThcl5zBDrNBIc596ItXc/n53IgxSQ5LJmgveBsRfSdzcY6VvHQ97CDtxMJ0 N8SsLQ8hy9Iv9x5XGAqL2MAkUbHfcZZC6TkUt4cck/kYRmKG0ARDtWv19UXAnZUcNvUS +wyW4b90v21CQ+meew5chkFThVG7xe5AI4FYsTr+IaQnrDHjS98URE84dcXUXEyqX8gD R9bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id q68si2376884qkb.79.2018.01.01.14.00.29; Mon, 01 Jan 2018 14:00:30 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 AC5E06089D; Mon, 1 Jan 2018 22:00:29 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 34D3860846; Mon, 1 Jan 2018 22:00:21 +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 49C0E6087E; Mon, 1 Jan 2018 22:00:13 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id E4C1E6084A for ; Mon, 1 Jan 2018 22:00:10 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward104o.mail.yandex.net (Yandex) with ESMTP id E6459701F2A for ; Tue, 2 Jan 2018 01:00:09 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bcsBzG5buq-09OOLrmX; Tue, 02 Jan 2018 01:00:09 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-09PiVrhT; Tue, 02 Jan 2018 01:00:09 +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, 2 Jan 2018 00:59:58 +0300 Message-Id: <1514844007-22122-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 2/11] doc: add missing user-guide images to Makefile.am 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: Dmitry Eremin-Solenikov Omitting those images in Makefile.am made them disappear from distribution tarball resulting in an improperly-built documentation files. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ doc/users-guide/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/users-guide/Makefile.am b/doc/users-guide/Makefile.am index b2ebd4d4f..7be32ddc1 100644 --- a/doc/users-guide/Makefile.am +++ b/doc/users-guide/Makefile.am @@ -32,6 +32,12 @@ IMAGES = $(IMAGES_DIR)/overview.svg \ $(IMAGES_DIR)/pktio_fsm.svg \ $(IMAGES_DIR)/pktout_direct_send.svg \ $(IMAGES_DIR)/pktout_queue_send.svg \ + $(IMAGES_DIR)/ref.svg \ + $(IMAGES_DIR)/refpkt1.svg \ + $(IMAGES_DIR)/refpkt2.svg \ + $(IMAGES_DIR)/refpktmulti.svg \ + $(IMAGES_DIR)/refpktsingle.svg \ + $(IMAGES_DIR)/refstatic.svg \ $(IMAGES_DIR)/release_git.svg \ $(IMAGES_DIR)/segment.svg \ $(IMAGES_DIR)/simple_release_git.svg \ From patchwork Mon Jan 1 21:59:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123081 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8276341qgn; Mon, 1 Jan 2018 14:03:21 -0800 (PST) X-Google-Smtp-Source: ACJfBotX4+/srk75oV6RYm4ELKzfddlcUIwEJGkzhEKMQvvklUqMfRw+b7fjQMfv+1reIMCQS6Cj X-Received: by 10.55.50.198 with SMTP id y189mr5419231qky.255.1514844201210; Mon, 01 Jan 2018 14:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844201; cv=none; d=google.com; s=arc-20160816; b=yuzExE/l3STXkWO+fkd9kfoaowu2hfCW2+/U/iO2HNsYnLKJl3eCfq2zdC5Okx2L1m CG8nJ8PXX50tQacEnC9i4IAh5dmIYvK7aJUYOcRE7bW2kPegH0jqVwmC5kukLLXs2ujr a0/0nm5gVfFG2ieO8g5uCW65SXGFUkIxREJgUgb05u/02vcjYs6SivPL/Hr4pcMScpeu ZkiTYeV1Tim+3CCSToPVQIkkt8rSR/AylfLEO3WD3Q4VedVYcw0rg40IlctcbsuMXkFz Tvh1s2UXHZYZAPrRiqeVPEdZAETZYgCLXScn/7B/jsNI0AaVojUUx60J28XfngaxZ8tV cLIg== 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=tesArpB5DV2fLMCzfbgl6YRcWNVVO9+wHh/hM2jf8X0=; b=0ip1wXjczOaSmT+cM8ngYOWsP2mGXFPinwG42h6AYm+sMn1FL6kYfaM/2TREFTwv3j mb3A0rBtEfR5gbqzxEY7ub0k+1equfXIToUTyLb5d1Bb1H4nnRpKrPQbcl2baPJ85X+p r6POF2cWnF0fSdE4DuvygEbkUl6kYpBgJk6okOFqT/tw590F4N7aiKZ6SM+Qu8yXNd7L mrAbY6LZqgLAlJLJuZ/I0diwGrHLGe5567ubFAl1suVVWbfMO4i3oFhuuA6ebsE40/Nh KmLwuvwVFhu8Sj1GiuTUhGMbbKomCMueg442t+FMe1GaorjgRBxb3HRPEO0lxVoMx1y5 pkow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id u57si11068211qte.85.2018.01.01.14.03.20; Mon, 01 Jan 2018 14:03:21 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 DD964616EF; Mon, 1 Jan 2018 22:03:20 +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, RCVD_IN_MSPIKE_H2, 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 13925608B5; Mon, 1 Jan 2018 22:00:39 +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 CD1CD6088B; Mon, 1 Jan 2018 22:00:15 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id B1B12607B5 for ; Mon, 1 Jan 2018 22:00:11 +0000 (UTC) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 615B62A211BE for ; Tue, 2 Jan 2018 01:00:10 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uXIMAeSP2D-0ACadgFd; Tue, 02 Jan 2018 01:00:10 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-09P8bJdr; Tue, 02 Jan 2018 01:00:09 +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, 2 Jan 2018 00:59:59 +0300 Message-Id: <1514844007-22122-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 3/11] doc: add missing implementers-guide images to Makefile.am 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: Dmitry Eremin-Solenikov Omitting those images in Makefile.am made them disappear from distribution tarball resulting in an improperly-built documentation files. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ doc/implementers-guide/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/implementers-guide/Makefile.am b/doc/implementers-guide/Makefile.am index 07ee141c8..c407339e2 100644 --- a/doc/implementers-guide/Makefile.am +++ b/doc/implementers-guide/Makefile.am @@ -2,10 +2,12 @@ include ../Makefile.inc SRC = implementers-guide.adoc TARGET = implementers-guide.html +IMAGES = $(IMAGES_DIR)/abi_llvm.svg \ + $(IMAGES_DIR)/abi_traditional.svg -EXTRA_DIST = $(SRC) +EXTRA_DIST = $(SRC) $(IMAGES) doc_DATA = $(TARGET) -$(TARGET): $(SRC) +$(TARGET): $(SRC) $(IMAGES) CLEANFILES = $(doc_DATA) From patchwork Mon Jan 1 22:00:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123079 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8274694qgn; Mon, 1 Jan 2018 14:01:29 -0800 (PST) X-Google-Smtp-Source: ACJfBouMqBBSUWHnxEmB4iT3xxNpNtnWTVCv39XRjsNdqE4jdbU82l+HPEs3Bai7FvxDT+hoC7s+ X-Received: by 10.55.143.131 with SMTP id r125mr29422544qkd.215.1514844089069; Mon, 01 Jan 2018 14:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844089; cv=none; d=google.com; s=arc-20160816; b=LKeLIfIhKmBGHvjIunX6cbbprqUnSbjH/ZMrEhVb4ElFX5o1PFjT/18nphTl8RbS6b Srgh0dFJZQvioBw4loYM3YhEpRSy6fZY5UDjg1L445iRq4+85mj3d8ROMiadJ1xAfCcK /3uvNLaGMGD/NtltVJTYVGxjg+2SZ+doSQe8xW8S7Ti19/vEPdFbcebx5n9mbTA5CZTQ 3Pc7N7xuluumuTfiI39qAGhgrCs/mmjRQ1JSFhypkWRuDpWezr7Nfz06h2WK9qQSkcMd oJhHNBGEo/ZabEr4JqBB9GFgmiNdcjN1dW6mdgBiwKOVtJbUcJAuT81DB3Hh180ySNp4 37LA== 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=FY/x8yj+RqPPfFFh++7OgmORa0mDbeN0Hcgqp+rSdbI=; b=v3oRR+lxsRpFu1d5ZBi/0Ap9NOqqJQ9NTYhhwcBtK+e63FgQ33I1FZ10D54xq64jIU cVFaEpbPYuiXOkLuHvs2HWFKvLtH0ULHj9YOJ3YIQjOG6p3x//Y0lcDab2VSYTVYCh8+ 52j6AMAJuNaV0GSb3L1bLTFJivkf/9+Z4quPHCRpgO9V7wm66q/WKqwpZf9Ljc33tTsq 7DM2TN+GqC8KAcr9Q/paspBwNnhC1K2dWnNNAQYdD/0Wt2AQmPVdJjH0lZo11/AqIrVS jL8A3wpe+vu0kTznUAFtUZBy3q9BFskgNrB088FuSm8F0tYmV9lhmeHHYF6f9Hkr++PZ x1ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id z83si2056239qkb.109.2018.01.01.14.01.28; Mon, 01 Jan 2018 14:01:29 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 C60846156D; Mon, 1 Jan 2018 22:01:28 +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, RCVD_IN_MSPIKE_H2, 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 900A06087E; Mon, 1 Jan 2018 22:00:24 +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 EA0846087F; Mon, 1 Jan 2018 22:00:13 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 8EBF360846 for ; Mon, 1 Jan 2018 22:00:12 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 23F5C4441C6B for ; Tue, 2 Jan 2018 01:00:11 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0dZOmkDuyl-0BFuTpKR; Tue, 02 Jan 2018 01:00:11 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0APiiJWg; Tue, 02 Jan 2018 01:00:10 +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, 2 Jan 2018 01:00:00 +0300 Message-Id: <1514844007-22122-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 4/11] performance: odp_crypto: correct typo 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: Dmitry Eremin-Solenikov Receieved -> Received. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ test/performance/odp_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index 0cbc2754e..761cc8cff 100644 --- a/test/performance/odp_crypto.c +++ b/test/performance/odp_crypto.c @@ -612,7 +612,7 @@ run_measure_one(crypto_args_t *cargs, if (cargs->debug_packets) { mem = odp_packet_data(out_pkt); - print_mem("Receieved encrypted packet", + print_mem("Received encrypted packet", mem, payload_length + config-> From patchwork Mon Jan 1 22:00:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123082 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8276957qgn; Mon, 1 Jan 2018 14:04:16 -0800 (PST) X-Google-Smtp-Source: ACJfBouNvqVfg2nP+4miDcpNfzP0ARA4v4P43e320H4jcwUYdvG5tumCGlX9YkqAt3ToI74JZErz X-Received: by 10.55.114.196 with SMTP id n187mr57090832qkc.200.1514844256557; Mon, 01 Jan 2018 14:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844256; cv=none; d=google.com; s=arc-20160816; b=zQholnup9XNREtwDv2UVvBmtpDrQPY7mCtOWWaOANgfF9XKx7AbIbGl1wJw9BhtTtr kxWCaLUpGxNEJFq6snv++mHrAwF3fPRDJsQOsSbqZ/uxm51fBmhN3pVLi1FBTYwOxBQT qoT0ZcMhG/x0yMu5KOB6IyqBJw5CLpDDC/JxYY2N5pun/FvjfOKYMJha5asn8/bAfwvJ aKHHpwpFGWfiUFFkHRARaqAQTdgZXmk6/9TMzSycNRXtxFgirZLvP5ZW1RRBBeD792JT 5bj3DynOGbUTDFIeD3WwXCGv5rLTUYi7qn90jQH/8SM4hp4wXJ/rRslwzsgblsGHsl6R cajw== 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=NMv2n8ROmHCAfHRLyeD+uLlrDM2rDh1yOI1xBOdoriI=; b=hWGClFN03wImosMT3vHZT4c6QNmJIsXMPE88A9FnW1EOR7rhSEATcOvYCbYxB1kN+u y5lK9UoNUfxZwbPESAtakhY8/ublqRdrq3SGhHkGZVjqaSny3hlFD2ye1cxoacXE1DWD zR2o3o0pWjQ/QQqbBZziOTdN2vejIviiomQJoAgYdbSLv5LnO5USIJtVjIbNgZ2mUnL1 QG0ARn6qJXLZj09aj7hqdYW3tiGpoLH1AabLq32lT1L1wQvJNBuf2hYGfHroIzlbJxCJ TOy0IZqVXbhDFs/a4Eg9XVqbnrprdGwQD/R0wFBNCTQ6PCD1wH11bz9297Qdjdfh9B2z M+9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id w40si3598242qtj.289.2018.01.01.14.04.16; Mon, 01 Jan 2018 14:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 3488B6151F; Mon, 1 Jan 2018 22:04:16 +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, RCVD_IN_MSPIKE_H2, 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 78E21608DE; Mon, 1 Jan 2018 22:00:44 +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 0CD2C6087F; Mon, 1 Jan 2018 22:00:17 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id B450660865 for ; Mon, 1 Jan 2018 22:00:12 +0000 (UTC) Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward100o.mail.yandex.net (Yandex) with ESMTP id A9CA12A21857 for ; Tue, 2 Jan 2018 01:00:11 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id OOjQkWlAGn-0B0WBt6t; Tue, 02 Jan 2018 01:00:11 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0BP8RXkf; Tue, 02 Jan 2018 01:00:11 +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, 2 Jan 2018 01:00:01 +0300 Message-Id: <1514844007-22122-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 5/11] build: provide an option to link examples dynamically 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: Dmitry Eremin-Solenikov Distributions won't like statically-linked binaries. Provide configure switch to link examples and tests dynamically. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ configure.ac | 11 +++++++++++ example/Makefile.inc | 4 ++++ test/Makefile.inc | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/configure.ac b/configure.ac index 177881a58..3242c453c 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,16 @@ AS_IF([test "${with_platform}" = "linux-generic"], AC_DEFINE_UNQUOTED([IMPLEMENTATION_NAME], ["$IMPLEMENTATION_NAME"], [Define to the name of the implementation]) +########################################################################## +# Build examples/tests dynamically +########################################################################## +AC_ARG_ENABLE([static-tests], + [AS_HELP_STRING([--disable-static-tests], + [disable static linking of examples and tests] + [ with ODP])], [], + [enable_static_tests=yes]) +AM_CONDITIONAL([STATIC_LINK], [test "x$enable_static_tests" != "xno"]) + ########################################################################## # Include m4 files ########################################################################## @@ -383,6 +393,7 @@ AC_MSG_RESULT([ Deprecated APIs: ${deprecated} debug: ${enable_debug} cunit: ${cunit_support} + static tests linkage: ${enable_static_tests} test_vald: ${test_vald} test_perf: ${test_perf} test_perf_proc: ${test_perf_proc} diff --git a/example/Makefile.inc b/example/Makefile.inc index 1609066e6..4cf5cfacc 100644 --- a/example/Makefile.inc +++ b/example/Makefile.inc @@ -13,4 +13,8 @@ AM_CFLAGS = \ -I$(top_srcdir)/platform/@with_platform@/arch/@ARCH_DIR@ \ -I$(top_builddir)/include +if STATIC_LINK AM_LDFLAGS = -L$(LIB) -static +else +AM_LDFLAGS = +endif diff --git a/test/Makefile.inc b/test/Makefile.inc index f7c0da214..d7e435038 100644 --- a/test/Makefile.inc +++ b/test/Makefile.inc @@ -18,7 +18,11 @@ INCFLAGS = \ AM_CPPFLAGS = $(INCFLAGS) AM_CFLAGS = $(CUNIT_CFLAGS) +if STATIC_LINK AM_LDFLAGS = -L$(LIB) -static +else +AM_LDFLAGS = +endif @VALGRIND_CHECK_RULES@ From patchwork Mon Jan 1 22:00:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123085 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8279079qgn; Mon, 1 Jan 2018 14:07:00 -0800 (PST) X-Google-Smtp-Source: ACJfBovo1qsMtO53H8Uh4ERfTYgCj8XEKFvrspJT+A9o5w96QAy4LzJL0XmYbDCYJ947EhXV8wIp X-Received: by 10.200.57.80 with SMTP id t16mr58254885qtb.98.1514844419923; Mon, 01 Jan 2018 14:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844419; cv=none; d=google.com; s=arc-20160816; b=UdXnIcB07GaSqAq7++EvdizKt2VRR+w+JVr53pU5ZoN4veN1CRKHu2S/o9OSA6Poq2 xFioHOX+o8AHBLw/MJ8kYC6Cb7y52TBznoir3LTWEqIX+UzsNReTGs+b0e7LrD2VKCVv azjJyywBveKAHE/DTWBxECOOfHN24UW0i07mxkYAvAYOqKx31fCf0ZhGTpfROssrJZlC AqEtg68qJRO1eDLyqiu46tfYl1WqsQDGZVRIJ5Pdt6bS1rsZDG+JNHdT9XtU4j0OXzz9 /XmJ1IMOmMHDl6NGTqdawqcR59ulyhUSLJY1/ECzKTHgpYQGuoV7aMg9uxBoUAA3qYrM yTvw== 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=aX8woargNs7BJpbBTrohLgn0iawjMPjLda1aJ7LJcDU=; b=JqnNKwOvlxmT0oZ1ZindavaQiap+rxrDXpJEzwPYBIzWVzJuEn54L041R55xpov1qN fC8YkRdaVgnoFfQI6kR9FECu8yPEzX/r3KCG2R8GPRAYpefnf4beWLTZRBSsj0QHHq0W zEOEuRcYK/BYCuEOu1SLzrepdJ1+FzRwKU95SWIXChN+rWWsyHzPeMKxaXS5pfWM6QV6 HxWh7Ze7fzYkR7jBB7HsAOL+42EM5cGSnWDdoVnQoCnw/YXn0zdHFwhRJAqF5AIi2Z7k j9j2NhiOhCj3u0ngWOJyIRJdFcnOldGR6XdutnXQoPmcoSIcA1rAiL67wKDRyLoqiSwf m+uA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id r28si2114150qkr.68.2018.01.01.14.06.59; Mon, 01 Jan 2018 14:06:59 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 9C32A6151A; Mon, 1 Jan 2018 22:06:59 +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, RCVD_IN_MSPIKE_H2, 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 7A48F608F8; Mon, 1 Jan 2018 22:01:06 +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 E485B60848; Mon, 1 Jan 2018 22:00:19 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 68C426084A for ; Mon, 1 Jan 2018 22:00:13 +0000 (UTC) Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 2FBC95102615 for ; Tue, 2 Jan 2018 01:00:12 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JYfGfgRSRP-0CMGmPb1; Tue, 02 Jan 2018 01:00:12 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0BPmnp0M; Tue, 02 Jan 2018 01:00:11 +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, 2 Jan 2018 01:00:02 +0300 Message-Id: <1514844007-22122-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 6/11] linux-gen: dpdk: simplify linking with shared libdpdk 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: Dmitry Eremin-Solenikov There is no need to pass PMDs when linking with shared DPDK library. Just pass -ldpdk which will pick up all PMDS dynamically. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ m4/odp_dpdk.m4 | 3 +++ platform/linux-generic/Makefile.am | 2 +- platform/linux-generic/m4/odp_dpdk.m4 | 37 ++++++++++++++++++++++++----------- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/m4/odp_dpdk.m4 b/m4/odp_dpdk.m4 index 05e60cc06..6ea196b7a 100644 --- a/m4/odp_dpdk.m4 +++ b/m4/odp_dpdk.m4 @@ -13,6 +13,9 @@ else fi done AS_VAR_APPEND([DPDK_PMDS], [--no-whole-archive]) +# Hack to circumvent libtool to pass -ldpdk after all PMDS to gcc +# Otherwise it reorders linking flags and ends up with -ldpdk before all PMDs +AS_VAR_APPEND([DPDK_PMDS], [" "-Wc,-ldpdk]) AC_SUBST([DPDK_PMDS]) ]) diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 7e40448bd..1136d3692 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -306,7 +306,7 @@ endif __LIB__libodp_linux_la_LIBADD = $(ATOMIC_LIBS) __LIB__libodp_linux_la_LIBADD += $(OPENSSL_LIBS) -__LIB__libodp_linux_la_LIBADD += $(DPDK_LIBS) $(DPDK_PMDS) +__LIB__libodp_linux_la_LIBADD += $(DPDK_PMDS) $(DPDK_LIBS) __LIB__libodp_linux_la_LIBADD += $(PTHREAD_LIBS) __LIB__libodp_linux_la_LIBADD += $(TIMER_LIBS) diff --git a/platform/linux-generic/m4/odp_dpdk.m4 b/platform/linux-generic/m4/odp_dpdk.m4 index 471bbcd51..2b31c58ab 100644 --- a/platform/linux-generic/m4/odp_dpdk.m4 +++ b/platform/linux-generic/m4/odp_dpdk.m4 @@ -13,16 +13,29 @@ AC_ARG_WITH([dpdk-path], [DPDK_PATH="$withval" pktio_dpdk_support=yes],[]) -AS_IF([test "x$DPDK_PATH" = "xsystem"], - [DPDK_CPPFLAGS="-isystem/usr/include/dpdk" - DPDK_LDFLAGS="" - DPDK_PMD_PATH="`$CC --print-file-name=librte_pmd_null.a`" - DPDK_PMD_PATH="`dirname "$DPDK_PMD_PATH"`" - AS_IF([test "x$DPDK_PMD_PATH" = "x"], - [AC_MSG_FAILURE([Could not locate system DPDK PMD directory])])], - [DPDK_CPPFLAGS="-isystem $DPDK_PATH/include" - DPDK_LDFLAGS="-L$DPDK_PATH/lib" - DPDK_PMD_PATH="$DPDK_PATH/lib"]) +if test "x$DPDK_PATH" = "xsystem"; then + DPDK_CPPFLAGS="-isystem/usr/include/dpdk" + DPDK_LDFLAGS="" + DPDK_RPATH="" + DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.so`" + if test "x$DPDK_LIB_PATH" = "x" ; then + DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.a`" + else + DPDK_SHARED=yes + fi + AS_IF([test "x$DPDK_LIB_PATH" = "x"], + [AC_MSG_FAILURE([Could not locate system DPDK library directory])]) + DPDK_PMD_PATH=`AS_DIRNAME(["$DPDK_PMD_PATH"])` +else + DPDK_CPPFLAGS="-isystem $DPDK_PATH/include" + DPDK_LIB_PATH="$DPDK_PATH/lib" + DPDK_LDFLAGS="-L$DPDK_LIB_PATH" + DPDK_RPATH="-R$DPDK_LIB_PATH" + DPDK_PMD_PATH="$DPDK_LIB_PATH" + if test -r "$DPDK_LIB_PATH"/libdpdk.so ; then + DPDK_SHARED=yes + fi +fi ########################################################################## # Enable zero-copy DPDK pktio @@ -45,7 +58,9 @@ then ODP_DPDK_CHECK([$DPDK_CPPFLAGS], [$DPDK_LDFLAGS], [], [AC_MSG_FAILURE([can't find DPDK])]) - ODP_DPDK_PMDS([$DPDK_PMD_PATH]) + if test x$DPDK_SHARED != xyes ; then + ODP_DPDK_PMDS([$DPDK_PMD_PATH]) + fi AC_DEFINE([ODP_PKTIO_DPDK], [1], [Define to 1 to enable DPDK packet I/O support]) From patchwork Mon Jan 1 22:00:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123086 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8279801qgn; Mon, 1 Jan 2018 14:07:57 -0800 (PST) X-Google-Smtp-Source: ACJfBovjqY5txdAQrqrn5b+G+Zp+Tf6p5E1lRsMwmvWLZJIYNn5JuraWZXkyjhi56N9t7ZSYb8G+ X-Received: by 10.55.76.10 with SMTP id z10mr52931788qka.346.1514844477006; Mon, 01 Jan 2018 14:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844477; cv=none; d=google.com; s=arc-20160816; b=hKmzL71VS6k5M/Io7q3VQChDycUIjAWuQYepxviVgPnjuOfHNoC7hrAoBODNgkKIfY VtJ8sO4CfzLySnkFsIGwJPnV1gwfLxvGDIPgZPg+GLjaE5urDN4eWFFRT7EFQNZJHvk3 TRb7P8NWdGsGYYS3vf2ksjq/iaQv3KJQTZLEPtEitQx4l/udDSLcaJNy3GdGB522Lhw/ IHQj/q1LLDZyj7fTpBY1YDSATJiGkxLLCkQ3NFMVJ5XG7GGU2MPfN0ccivEcnQVT81Rd WhKJCOLU88wbKDk9+c/msvsX21DI//Bo/OAB9FcoIVhmxZVsVOfsyXrsWYN/0nuGwz+P YONw== 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=oAbv4jpc5FTALu7tcJDahXH6kGVPnc7ZES/wJuCEv9U=; b=CbNeQ6lDzDQDOueSzBMj2eX7N9VzRyto1HebMa63hEfFjsxdmFeuTueaT6in+mv9ES 3+CALitu1il7tkQNHT9Zqgevu7dz4gEWbEfTNqRccJ7jZtvjrmWtn5/0yz0+y9NctVjE c52dXdFmHdnS/8AqWB+foydnTD1Xzpdlr22/qCofQyoX38O1VFJXJHSnmojA29Ohandr ONMIy5DFHmvbJ7DA/neivQVH21Nnee4h+wViYeVGbfvezio95aqamu8uvxYZ2/w5dRsn pLUCtdtbi7rEaA0L27Fiq+yA53k/VxFQPssXqjXpOI/XHSGqcNwWXdt9vO6e7yzm5iGa LmlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id o17si3550190qki.345.2018.01.01.14.07.56; Mon, 01 Jan 2018 14:07:56 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 AE99F616F6; Mon, 1 Jan 2018 22:07:56 +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, RCVD_IN_MSPIKE_H2, 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 A954461524; Mon, 1 Jan 2018 22:01:13 +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 2F45260848; Mon, 1 Jan 2018 22:00:20 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id D23016087B for ; Mon, 1 Jan 2018 22:00:13 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward100o.mail.yandex.net (Yandex) with ESMTP id C4EA82A217D4 for ; Tue, 2 Jan 2018 01:00:12 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 3BNj7mBB4x-0C0eAEtQ; Tue, 02 Jan 2018 01:00:12 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0CPKr4tX; Tue, 02 Jan 2018 01:00:12 +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, 2 Jan 2018 01:00:03 +0300 Message-Id: <1514844007-22122-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 7/11] linux-gen: don't pass DPKD_LIBS for dynamic linking with libodp-linux 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: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ platform/linux-generic/libodp-linux.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/libodp-linux.pc.in b/platform/linux-generic/libodp-linux.pc.in index 220dbc9c6..962a4f78f 100644 --- a/platform/linux-generic/libodp-linux.pc.in +++ b/platform/linux-generic/libodp-linux.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: libodp-linux Description: The ODP packet processing engine Version: @PKGCONFIG_VERSION@ -Libs: -L${libdir} -lodp-linux @DPDK_LIBS@ +Libs: -L${libdir} -lodp-linux Libs.private: @OPENSSL_STATIC_LIBS@ @DPDK_PMDS@ @DPDK_LIBS@ @PCAP_LIBS@ @PTHREAD_LIBS@ @TIMER_LIBS@ -lpthread @ATOMIC_LIBS@ Cflags: -I${includedir} From patchwork Mon Jan 1 22:00:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123087 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8280436qgn; Mon, 1 Jan 2018 14:08:45 -0800 (PST) X-Google-Smtp-Source: ACJfBosBO7hCT4aUlYJTlmzT9Aat8Hubzjzs6Ec9bHkNKB0INmcR6hElY7NTg5SWCSiHQwxFdK9v X-Received: by 10.55.171.17 with SMTP id u17mr49523145qke.340.1514844525653; Mon, 01 Jan 2018 14:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844525; cv=none; d=google.com; s=arc-20160816; b=hcoBxE9hqv9nxrT10R79afmmqUIL/TB2VLvqpTHEaxHRIf3Lk+/Y7OP/oTfVGNssc0 TYryTd42BVl0HerlFYwuUDE93Xf6DhQve86IhdwICF/calSKi/cPukB7duSXkcj5xRbV oMna2QFIIyX2anJVVtwjDsNg1sHvtUns/UoW8oPopbeaoppirPdqYnD5gRDMipxsS0Fp pq6MoTtOFV6zYS7U3BjnmkMETcCPaT1ULHlomTya6qm7KoA+612vc0RpVYKinflC2iI2 y1K31M+Rofj4ohMeNmPT98XfEW0F0bcbT7Hj6jGqylH1B2ZwgXE4FskqpPr1Bk1i238a F15A== 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=GtFludqTdEofK6ttTLApa+SflAkIKGy0h/o9jd+gBZg=; b=qJH2KC7zxDzPRI3mHhxqYB5l8+ubJq5KBhWpjVxAd3kQ0EgnGJ0jQU/o4xV3LSjoPX 8N98mp4pdPWXgi5tZ60Y92bb7Jl/5lp92bIJGrVzMuSjgzzbEnytXSltVB+yIdny9s8q RiOn5ZIcSOa7o1HYWZA6UX/ZB+lgRaM7WrTHP+N2ljnU1Bg59zobZzsSpaNlIT8VzRUt PowjnHyCaJmG3lhB2kpQNUdyj4edyuXJUIQxM7dRJo59U4G9oWqntYNk+MdmLjLRWFGz CWUSbYqBavHDj8N2BxwXZnijBycgCHO3id3Bbp06NydCRjh7KPoFr3Tjr+7EkZjOgwHj rwdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id r53si841041qtr.343.2018.01.01.14.08.45; Mon, 01 Jan 2018 14:08:45 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 435BD61525; Mon, 1 Jan 2018 22:08:45 +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, RCVD_IN_MSPIKE_H2, 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 E74FA61698; Mon, 1 Jan 2018 22:01:18 +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 621CC60848; Mon, 1 Jan 2018 22:00:20 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 7563560846 for ; Mon, 1 Jan 2018 22:00:14 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 2BE7B5D82585 for ; Tue, 2 Jan 2018 01:00:13 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id R0h4E0QtnS-0DmiMhvG; Tue, 02 Jan 2018 01:00:13 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0CP0jKgT; Tue, 02 Jan 2018 01:00:12 +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, 2 Jan 2018 01:00:04 +0300 Message-Id: <1514844007-22122-9-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 8/11] example: add missing libraries to LDADD variables 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: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ example/ipfragreass/Makefile.am | 2 ++ example/ipsec/Makefile.am | 1 + example/ipsec_api/Makefile.am | 3 +++ 3 files changed, 6 insertions(+) diff --git a/example/ipfragreass/Makefile.am b/example/ipfragreass/Makefile.am index fa7d5c8bd..b98e066f8 100644 --- a/example/ipfragreass/Makefile.am +++ b/example/ipfragreass/Makefile.am @@ -1,5 +1,7 @@ include $(top_srcdir)/example/Makefile.inc +LDADD += $(ATOMIC_LIBS) + bin_PROGRAMS = odp_ipfragreass odp_ipfragreass_SOURCES = odp_ipfragreass.c \ diff --git a/example/ipsec/Makefile.am b/example/ipsec/Makefile.am index 85905ffa7..eba9b8bda 100644 --- a/example/ipsec/Makefile.am +++ b/example/ipsec/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/example/Makefile.inc AM_CPPFLAGS = $(OPENSSL_CPPFLAGS) +LDADD += $(OPENSSL_LIBS) bin_PROGRAMS = odp_ipsec diff --git a/example/ipsec_api/Makefile.am b/example/ipsec_api/Makefile.am index 847326fc0..14bc5dd66 100644 --- a/example/ipsec_api/Makefile.am +++ b/example/ipsec_api/Makefile.am @@ -1,5 +1,8 @@ include $(top_srcdir)/example/Makefile.inc +AM_CPPFLAGS = $(OPENSSL_CPPFLAGS) +LDADD += $(OPENSSL_LIBS) + bin_PROGRAMS = odp_ipsec dist_bin_SCRIPTS = \ From patchwork Mon Jan 1 22:00:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123083 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8277602qgn; Mon, 1 Jan 2018 14:05:10 -0800 (PST) X-Google-Smtp-Source: ACJfBos4EVZdDfjzUlOwaJQowrA8L6QYgb3P0CFOzu4LfU+yegWf86gV1BGeWiTQwufRtW57MNfa X-Received: by 10.55.214.16 with SMTP id t16mr53698068qki.52.1514844310463; Mon, 01 Jan 2018 14:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844310; cv=none; d=google.com; s=arc-20160816; b=Kff0Z1q5BLY4DbZdnU+nEumXLEqAlYa8/rvpnqnPKA0FJaKFLcqEWntvk6fFDEo3Q3 0FC+rxv2KzZr8b+Mp2DgINYWMdkiwjoqFM4AhHXyAEfGW1NEym1WQjzVYDgaIdLtA3t2 4ROj9Rklp74dKNpIHokLtqjYXfZoduGtC5J3as4tK9qlhhnjxJ638dCQA71IKqv+lsVw GebSCYufhJeP+yjZlmpLK/ojIXgdkAkizcts/kj3dkrFIhAV4BrVTPI6o3aibgYNr5V1 yhtgZc3FwgmherZo5WyOXLUwY/1T47IjWghWNSsH3XRN5LzhvIK+6lfpIlM06xbD6XY0 OzGA== 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=QuaPRRKqP92W4W9zvDHycwdEkr3JZBLYlFXDhYYzPO0=; b=wNL6txKkp8DHsNX29crmyBAaL5rvWRB2eKFrhBUXtOPdVZHZiiOheJdZIdECNQnGTF Xl00kgVjJgyk65sKx13AO3N3wrrthWF+98n4Hf+34hnOc8K0Fz16u6mGvWyby+IVDILP XTIAmJ9jtVwZR2pgtZ2U6w6sGM8MHzlC8uUQ5Ue/KPCHJnJNzLaqkGtzJFzGOR0RkDb7 NLPdF4qaYL6HCV/eAA3jCwB3a92eeuGBQ+n7k4RbPWz+NHtMZYHVFdi027CjkC4kplp9 K4XTnBi5/26LVUTNO6zlCsYh+PGaLfR3GsvalVocLD0KojvCrHr/mc0fKo1+cYE9v9OA K0VQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id x15si223251qtc.234.2018.01.01.14.05.10; Mon, 01 Jan 2018 14:05:10 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 09B5E616F4; Mon, 1 Jan 2018 22:05:10 +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, RCVD_IN_MSPIKE_H2, 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 AE7AB6089E; Mon, 1 Jan 2018 22:00:51 +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 2A1EF60865; Mon, 1 Jan 2018 22:00:18 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id 179F060848 for ; Mon, 1 Jan 2018 22:00:15 +0000 (UTC) Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward104j.mail.yandex.net (Yandex) with ESMTP id AFD93415DE for ; Tue, 2 Jan 2018 01:00:13 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4T4aIsaozM-0Dxagn5G; Tue, 02 Jan 2018 01:00:13 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0DPaUcw9; Tue, 02 Jan 2018 01:00:13 +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, 2 Jan 2018 01:00:05 +0300 Message-Id: <1514844007-22122-10-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 9/11] travis: run tests with dynamically-linked tests 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: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index fa352b572..a70df39d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,6 +74,7 @@ env: - CONF="--enable-schedule-iquery" - CONF="--enable-schedule-scalable" - CONF="--enable-dpdk-zero-copy" + - CONF="--disable-static-tests" - CROSS_ARCH="arm64" - CROSS_ARCH="armhf" CFLAGS="-march=armv7-a" - CROSS_ARCH="powerpc" From patchwork Mon Jan 1 22:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123084 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8278301qgn; Mon, 1 Jan 2018 14:05:57 -0800 (PST) X-Google-Smtp-Source: ACJfBosDIDsK/4vihaoBxlmETQKAhizF488i7gDOOy6xzGS3BPSO3pSICxRVrjcvpOaBhIDxfdq2 X-Received: by 10.55.91.1 with SMTP id p1mr5369371qkb.6.1514844357590; Mon, 01 Jan 2018 14:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844357; cv=none; d=google.com; s=arc-20160816; b=lw17f9KnzA1f7M4bDy1cT6n7NHEk1ynkzbc8wJNKnzenuil957QiRuU7JWarelZUPI DTtwm+YexJ6RIgT0POBPKa+XqAVUwJdoU2RyMQzGjoe+Qdl4uOGeafS/euP/VMKZuQW3 V39WuGC60DLTsJFlw2rUqhxjWQ+KBwZeoOkfJTt7GT5ZI+A3uwEOluu1FkJpHfpayp8O /68jSDbuRzBpYvpZedFl0GQKjGNFwuCXhRMYpwyP+uL3pkrHJ8YXHGZgt0nVRgiMTL6S 35XR3NsS5/KFblXo4L1ixxs9pBLpErRZw8YqhwUElxicbA0xFLUgTyRBrbAqDPL+CuGE dpYw== 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=u4ODHtZ97tNWbOFwVJP4Hqo+K7+2faAu9SlTR227wwA=; b=Q7odqFClFcN2a/i+adBYKP8fIFL5f9snT1c1bqjXqu80kDr2sst6MFsaj/TqEA7o1X BE5w16/kJMRwNTXZZiAcCxcWXRHJZTvvBwsPhoNyxPwhZmMdPU2xfcfdvHczb7uoXRRr IwqWBxwyzrgtvW9iCm+4UN152g+BEXQZXcuQyH0DvRW1kLrXy9FWZ9GjojZv4NwTtC62 ed2ktxgBNSplRVo/2tMi6Xg7/G9XQiJM5STjUiuebXDVoHmO/klAw8waEmvqyyR+RjsM QbrJA7Ba9vSw2D2NvZltRHC175wSn4j9+M6InAXCPngnDFwXk6ba2uzj3R39w3rA1IW/ k3Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id v55si9766091qtc.305.2018.01.01.14.05.57; Mon, 01 Jan 2018 14:05:57 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 3A62D616E8; Mon, 1 Jan 2018 22:05:57 +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, RCVD_IN_MSPIKE_H2, 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 24DFD6095E; Mon, 1 Jan 2018 22:01:01 +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 8F52860848; Mon, 1 Jan 2018 22:00:19 +0000 (UTC) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by lists.linaro.org (Postfix) with ESMTPS id 540EB6087E for ; Mon, 1 Jan 2018 22:00:15 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 263132182660 for ; Tue, 2 Jan 2018 01:00:14 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id M67EoSAtv3-0E9iG8UK; Tue, 02 Jan 2018 01:00:14 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0DP0jAOG; Tue, 02 Jan 2018 01:00:13 +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, 2 Jan 2018 01:00:06 +0300 Message-Id: <1514844007-22122-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 10/11] helper/tests: use common Makefile.inc for tests 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: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ helper/test/Makefile.am | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am index 8eee643be..662d6c758 100644 --- a/helper/test/Makefile.am +++ b/helper/test/Makefile.am @@ -1,26 +1,4 @@ -TESTS_ENVIRONMENT = EXEEXT=${EXEEXT} - -LIB = $(top_builddir)/lib - -#in the following line, the libs using the symbols should come before -#the libs containing them! The includer is given a chance to add things -#before libodp by setting PRE_LDADD before the inclusion. -LDADD = $(PRE_LDADD) $(LIB)/libodphelper.la $(LIB)/libodp-linux.la - -INCFLAGS = \ - -I$(top_builddir)/platform/@with_platform@/include \ - -I$(top_srcdir)/helper/include \ - -I$(top_srcdir)/include \ - -I$(top_srcdir)/include/odp/arch/@ARCH_ABI@ \ - -I$(top_srcdir)/platform/@with_platform@/include \ - -I$(top_srcdir)/platform/@with_platform@/arch/@ARCH_DIR@ \ - -I$(top_builddir)/include \ - -I$(top_srcdir)/helper - -ODP_PLATFORM=${with_platform} - -AM_CPPFLAGS = $(INCFLAGS) -AM_LDFLAGS = -static +include $(top_srcdir)/test/Makefile.inc EXECUTABLES = chksum \ cuckootable \ From patchwork Mon Jan 1 22:00:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123088 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8281560qgn; Mon, 1 Jan 2018 14:10:14 -0800 (PST) X-Google-Smtp-Source: ACJfBosMKm24qq31u8Wde1qHgVtgxNk12CWk0bHTnSAB+2yxsnM1GwHnnX5QRicY8CLxS55qEVBw X-Received: by 10.200.23.18 with SMTP id w18mr54666611qtj.47.1514844614790; Mon, 01 Jan 2018 14:10:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514844614; cv=none; d=google.com; s=arc-20160816; b=h0yOfHQw6mxtC/K/xnYTPOcGqpHhxf2HjDSb1oGoLawVyDPk0+hrWVUJGESd3S4jQd jtkuOfSNfKxY3OBGfKE1X4XM3kktFbJ6ipBQ72rwjw5thHohmbQfnEBqmu0CIwTdbkuS 7E5EqtL8ISA0c1dC3luEIDRf5YDhU4HAbsszBApLhKXMXk28jNEgGnmjPP6DVk3t1Muo /acVlCPFvwdWa0r6rMFi/iesWNgAeOHfopEFoDfgtjYMK9O4HGkTBswXoUkZ89tnXKLN PKnwj2kkjB8crBU8CNIpOTquBQ27ftleffKFMwBHrmrrsIdwItDKsi03UGTx0KxB2N08 K19A== 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=c5zTm97iOPvjMlNPilpBVw6ZCjMO9xKKRn+rDyNBk+Y=; b=b8fO3sCQyXFY5GxPhyA5rgZTdb15rKLaUU96Nzl0lYxQX1xh2m3xhE4gigC3PypaLc V9CsAPaWEPPPcdz8WhnlP/x0i3cy+fAAPnFh+A3swc2ppFZ6+/cPIBOOP1NaNOEjLT+5 lC3iDNKR4DXKa5k63KAJeMXeNFVKDMyt4nxNGaC2ljIy3Cf+2GitHNmWlnMPLQt1IO0d COtyCChRjnOqLMVWwLzBeNCMdrH5pDJckUmQDk2Cxvb9pUeU/tKl6kUzZlXzYaYKu6lm dnIPsWugCMoyQA+QbTCBFTpi84B1d9DOCLhA3HXRTjQ3YgBz+HW0F5SsoMreUeDgjg0n 5wtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id l5si959984qti.111.2018.01.01.14.10.14; Mon, 01 Jan 2018 14:10:14 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 698E4616B9; Mon, 1 Jan 2018 22:10:14 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 59376616E2; Mon, 1 Jan 2018 22:01:31 +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 BED14616E2; Mon, 1 Jan 2018 22:01:25 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 3C03C60865 for ; Mon, 1 Jan 2018 22:00:22 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward103j.mail.yandex.net (Yandex) with ESMTP id A362134C26E6 for ; Tue, 2 Jan 2018 01:00:20 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ShnlHBgaG2-0EXaVQ9w; Tue, 02 Jan 2018 01:00:14 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X57ZRXUA30-0EPaHKbI; Tue, 02 Jan 2018 01:00:14 +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, 2 Jan 2018 01:00:07 +0300 Message-Id: <1514844007-22122-12-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> References: <1514844007-22122-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 377 Subject: [lng-odp] [PATCH v5 11/11] validation: time: use time() instead of clock() 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: Dmitry Eremin-Solenikov ODP test for time API uses clock() to compare time against. However clock() returns processor time used by program, which can differ between runs. Use time() as a time source to compare against. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 377 (lumag:misc-fixes) ** https://github.com/Linaro/odp/pull/377 ** Patch: https://github.com/Linaro/odp/pull/377.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 3b7e2ac62accecc65b9f91635a4b6ef04ca77988 **/ test/validation/api/time/time.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/api/time/time.c b/test/validation/api/time/time.c index c8f90dbac..95422b683 100644 --- a/test/validation/api/time/time.c +++ b/test/validation/api/time/time.c @@ -423,11 +423,11 @@ static void time_test_accuracy(time_cb time_cur, time_from_ns_cb time_from_ns) { int i; odp_time_t t1, t2, wait, diff; - clock_t c1, c2; + time_t c1, c2; double sec_t, sec_c; odp_time_t sec = time_from_ns(ODP_TIME_SEC_IN_NS); - c1 = clock(); + c1 = time(NULL); t1 = time_cur(); wait = odp_time_sum(t1, sec); @@ -436,12 +436,12 @@ static void time_test_accuracy(time_cb time_cur, time_from_ns_cb time_from_ns) wait = odp_time_sum(wait, sec); } + c2 = time(NULL); t2 = time_cur(); - c2 = clock(); diff = odp_time_diff(t2, t1); sec_t = ((double)odp_time_to_ns(diff)) / ODP_TIME_SEC_IN_NS; - sec_c = ((double)(c2 - c1)) / CLOCKS_PER_SEC; + sec_c = ((double)(c2 - c1)); /* Check that ODP time is within +-5% of system time */ CU_ASSERT(sec_t < sec_c * 1.05);