From patchwork Mon Jan 23 19:46:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 92268 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1385377qgi; Mon, 23 Jan 2017 11:46:51 -0800 (PST) X-Received: by 10.36.31.205 with SMTP id d196mr15832218itd.112.1485200811831; Mon, 23 Jan 2017 11:46:51 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w10si9641984itf.37.2017.01.23.11.46.51; Mon, 23 Jan 2017 11:46:51 -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 D97E662D25; Mon, 23 Jan 2017 19:46:50 +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 091C360F38; Mon, 23 Jan 2017 19:46:48 +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 77B5962D3D; Mon, 23 Jan 2017 19:46:43 +0000 (UTC) Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) by lists.linaro.org (Postfix) with ESMTPS id 6460360674 for ; Mon, 23 Jan 2017 19:46:12 +0000 (UTC) Received: by mail-qt0-f174.google.com with SMTP id k15so142839486qtg.3 for ; Mon, 23 Jan 2017 11:46:12 -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=aV9hsjLIifVFUpV7DvEEn4VFGaee4pXgTGAXxfGcx1I=; b=kw3sV4tPuQOp4a2FquP6Xh7VXFLLBWqQMdUyTBZaZwczFXthsK4SzJxoukcckB+IqE ot3dYmA3KyBMGOERO29nLeYaFm39QX4aq57mXKN6GHALY3sZRKgsqJz1xKF0H3SxC05L Ra6CoE84XSJxRh02V1SuRpZMQoiSerGN02lXSy5fTGbZhCiv+69kCTHxdbG1mmzy83Br U9Z8Pgqo+b68McpJ5v77BDB1Fb0oqfFJSkEJOAuLnT6gFM8XfG2NuWFC8e1KlPoEGBHM RSBZOH/YGNUunWH3VIIWPBHzIFuNpUvFpDKLG9wYLGlC7jjFWHLKcPe9FsYq3fD3nxs9 jKtA== X-Gm-Message-State: AIkVDXJ/7ZGgnLIUTsSJVfLEYRsDKpiyjl1Ztq7DTmcPBGfe8uUV/H50Qi3bjM7QNyzxGJyaHBo= X-Received: by 10.237.53.2 with SMTP id a2mr25445853qte.97.1485200771985; Mon, 23 Jan 2017 11:46:11 -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 w41sm13936166qtw.34.2017.01.23.11.46.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jan 2017 11:46:10 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 23 Jan 2017 14:46:04 -0500 Message-Id: <20170123194608.4552-1-mike.holmes@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [lng-odp] [PATCH 0/4] introduce odph_api.h and clean up public helper API 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" Greatly reduce the proliferation of helper includes that every app needs Make the public helper API very obvious Fix recent inclusion of table APIs that were not in the helper include dir and were not exported during install. Mike Holmes (4): helper: add odph_api.h for existing exported headers helper: use odph_api.h for test include for unexported files test: use odph_api.h examples: use odph_api.h example/classifier/odp_classifier.c | 4 +-- example/generator/odp_generator.c | 6 +--- example/ipsec/odp_ipsec.c | 6 +--- example/ipsec/odp_ipsec_fwd_db.h | 1 - example/ipsec/odp_ipsec_loop_db.h | 1 - example/ipsec/odp_ipsec_misc.h | 4 +-- example/ipsec/odp_ipsec_stream.c | 4 +-- example/l2fwd_simple/odp_l2fwd_simple.c | 4 +-- example/l3fwd/odp_l3fwd.c | 6 +--- example/l3fwd/odp_l3fwd_db.h | 2 +- example/packet/odp_pktio.c | 4 +-- example/switch/odp_switch.c | 4 +-- example/time/time_global_test.c | 2 +- example/timer/odp_timer_test.c | 2 +- helper/Makefile.am | 11 +++--- helper/cuckootable.c | 2 +- helper/hashtable.c | 2 +- helper/include/odp/helper/odph_api.h | 39 ++++++++++++++++++++++ helper/{ => include/odp/helper}/odph_cuckootable.h | 0 helper/{ => include/odp/helper}/odph_hashtable.h | 0 .../{ => include/odp/helper}/odph_iplookuptable.h | 0 helper/{ => include/odp/helper}/odph_lineartable.h | 0 helper/iplookuptable.c | 2 +- helper/lineartable.c | 2 +- helper/test/chksum.c | 4 +-- helper/test/cuckootable.c | 2 +- helper/test/iplookuptable.c | 2 +- helper/test/odpthreads.c | 2 +- helper/test/parse.c | 3 +- helper/test/table.c | 3 +- test/common_plat/common/odp_cunit_common.c | 2 +- test/common_plat/performance/odp_crypto.c | 2 +- test/common_plat/performance/odp_l2fwd.c | 4 +-- test/common_plat/performance/odp_pktio_perf.c | 5 +-- test/common_plat/performance/odp_sched_latency.c | 2 +- test/common_plat/performance/odp_scheduling.c | 2 +- .../api/classification/odp_classification_common.c | 4 --- .../classification/odp_classification_test_pmr.c | 4 --- .../api/classification/odp_classification_tests.c | 4 --- .../classification/odp_classification_testsuites.h | 1 + test/common_plat/validation/api/pktio/pktio.c | 4 +-- test/common_plat/validation/api/timer/timer.c | 2 +- .../validation/api/traffic_mngr/traffic_mngr.c | 6 +--- test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c | 4 +-- test/linux-generic/pktio_ipc/ipc_common.h | 5 +-- test/linux-generic/ring/ring_stress.c | 2 +- 46 files changed, 80 insertions(+), 97 deletions(-) create mode 100644 helper/include/odp/helper/odph_api.h rename helper/{ => include/odp/helper}/odph_cuckootable.h (100%) rename helper/{ => include/odp/helper}/odph_hashtable.h (100%) rename helper/{ => include/odp/helper}/odph_iplookuptable.h (100%) rename helper/{ => include/odp/helper}/odph_lineartable.h (100%) -- 2.9.3 Reviewed-by: Christophe Milard