From patchwork Wed Jan 18 22:01:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 91829 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1228787qgi; Wed, 18 Jan 2017 14:02:16 -0800 (PST) X-Received: by 10.55.104.22 with SMTP id d22mr4907023qkc.127.1484776936450; Wed, 18 Jan 2017 14:02:16 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r66si1212064qkl.175.2017.01.18.14.01.53; Wed, 18 Jan 2017 14:02:16 -0800 (PST) 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0610B62BBA; Wed, 18 Jan 2017 22:01:53 +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, 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 0C6A5617A0; Wed, 18 Jan 2017 22:01:46 +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 6C47660C2A; Wed, 18 Jan 2017 22:01:43 +0000 (UTC) Received: from mail-qt0-f172.google.com (mail-qt0-f172.google.com [209.85.216.172]) by lists.linaro.org (Postfix) with ESMTPS id 599D760C2A for ; Wed, 18 Jan 2017 22:01:41 +0000 (UTC) Received: by mail-qt0-f172.google.com with SMTP id v23so33969167qtb.0 for ; Wed, 18 Jan 2017 14:01:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KKrmi1ffmV6Ewcy9+JLa8GxlD3Slckt+6BRSC/az1aA=; b=jO25kCgHrY6iPL8HyMu3CG8tMtJBzdlCJSbU0MyKbRonq6TxUeoVi6Ico3dQW6N4Bq iLnrYWD2ec9Loj+x75lkieVjGABvZ5Ppv457lPiKN8I2itiaFDhEpRFETeKvpAY+cYAT QIKmeZIE6/Fg/jyJuH2NpRJOWnshcYhQ7wuol5rLQ6LxE/otx2/pG2Z0fiTU9mnGdZrq 0ay13BEIG3eCVcJXaaq9n8aI7gjWh0PVyusT8q8uyR5Oy0KHXwuOyrRDZ8uJxSr/Fbx+ XTNOvojq3APAwfkuMUfL3tnJ+LgmitMLlb8Hv+Kry+i33qP1wuBfgmWztkpgYTshxDUk D3LQ== X-Gm-Message-State: AIkVDXKBvb7M9rmXUG1W0mTPfXA5IMexsxuI7XxxSkzE3yC/4sxmLbyoWMX8apA2pp+nOXIMZkg= X-Received: by 10.55.72.141 with SMTP id v135mr5050598qka.182.1484776900979; Wed, 18 Jan 2017 14:01:40 -0800 (PST) Received: from localhost (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id n18sm1360925qtc.4.2017.01.18.14.01.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jan 2017 14:01:39 -0800 (PST) From: Mike Holmes To: christophe.milard@linaro.org, lng-odp@lists.linaro.org Date: Wed, 18 Jan 2017 17:01:33 -0500 Message-Id: <20170118220137.6817-1-mike.holmes@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [lng-odp] [PATCH v3 0/4] remove Linux specifics and dependence on test dir 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" Starting with some clean up, rename the Linux specific files and then move them to a platform specific directory. A new configure option is introduced "with-helper-platform", this defaults to match the existing odp selector "with-platform" so that there is no operational change. With the move made the default is to build only the portable helper API, if the legacy and previously unused Linux thread APIs are needed they can be built in with --enable-helper-extn Then remove the dependence on the test directory. v2: sort some lists into alphabetical order (Maxim) addtional code simplification removing a .h helper(Christophe) v3: rebase whitespace error is there due to matching existing formatting in file Mike Holmes (4): configure: use helper configure.m4 helper: cleanup Linux rename to thread helper: move thread implementation under platform helper: remove dependence on test dir configure.ac | 19 +- example/Makefile.inc | 2 +- example/classifier/odp_classifier.c | 2 +- example/generator/odp_generator.c | 2 +- example/ipsec/odp_ipsec.c | 2 +- example/l2fwd_simple/odp_l2fwd_simple.c | 2 +- example/l3fwd/odp_l3fwd.c | 2 +- example/packet/odp_pktio.c | 2 +- example/switch/odp_switch.c | 2 +- example/time/time_global_test.c | 5 +- example/timer/odp_timer_test.c | 2 +- helper/Makefile.am | 22 +- .../helper/platform/linux-generic/threads_extn.h | 112 ++++++++ helper/include/odp/helper/{linux.h => threads.h} | 78 ----- helper/m4/configure.m4 | 14 + helper/platform/linux-generic/thread.c | 313 +++++++++++++++++++++ helper/test/Makefile.am | 43 ++- helper/test/chksum.c | 18 +- helper/test/cuckootable.c | 4 +- helper/test/iplookuptable.c | 4 +- helper/test/linux-generic/Makefile.am | 5 + helper/test/{ => linux-generic}/process.c | 16 +- helper/test/{ => linux-generic}/thread.c | 16 +- helper/test/odpthreads.c | 20 +- helper/test/parse.c | 86 +++--- helper/test/table.c | 12 +- helper/{linux.c => threads.c} | 240 +--------------- ...inux.pc.in => libodphelper-linux-generic.pc.in} | 4 +- test/Makefile.inc | 2 +- test/common_plat/common/odp_cunit_common.c | 2 +- .../common_plat/miscellaneous/odp_api_from_cpp.cpp | 2 +- test/common_plat/performance/odp_crypto.c | 2 +- test/common_plat/performance/odp_l2fwd.c | 2 +- test/common_plat/performance/odp_pktio_perf.c | 2 +- test/common_plat/performance/odp_sched_latency.c | 2 +- test/common_plat/performance/odp_scheduling.c | 2 +- test/common_plat/validation/api/Makefile.inc | 2 +- test/common_plat/validation/api/timer/timer.c | 2 +- test/linux-generic/Makefile.inc | 2 +- test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c | 2 +- test/linux-generic/pktio_ipc/ipc_common.h | 2 +- test/linux-generic/ring/ring_stress.c | 2 +- 42 files changed, 633 insertions(+), 444 deletions(-) create mode 100644 helper/include/odp/helper/platform/linux-generic/threads_extn.h rename helper/include/odp/helper/{linux.h => threads.h} (74%) create mode 100644 helper/platform/linux-generic/thread.c create mode 100644 helper/test/linux-generic/Makefile.am rename helper/test/{ => linux-generic}/process.c (84%) rename helper/test/{ => linux-generic}/thread.c (84%) rename helper/{linux.c => threads.c} (67%) rename pkgconfig/{libodphelper-linux.pc.in => libodphelper-linux-generic.pc.in} (72%) -- 2.9.3 Reviewed-by: Christophe Milard