From patchwork Mon Jan 23 19:46:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 92270 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1385841qgi; Mon, 23 Jan 2017 11:48:07 -0800 (PST) X-Received: by 10.237.62.182 with SMTP id n51mr25655574qtf.252.1485200887626; Mon, 23 Jan 2017 11:48:07 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v13si11519906qta.74.2017.01.23.11.48.07; Mon, 23 Jan 2017 11:48:07 -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 459AC62C3A; Mon, 23 Jan 2017 19:48:07 +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 CCE3A62D2E; Mon, 23 Jan 2017 19:46:54 +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 ABB0C60F38; Mon, 23 Jan 2017 19:46:46 +0000 (UTC) Received: from mail-qt0-f176.google.com (mail-qt0-f176.google.com [209.85.216.176]) by lists.linaro.org (Postfix) with ESMTPS id 44D5062CA7 for ; Mon, 23 Jan 2017 19:46:21 +0000 (UTC) Received: by mail-qt0-f176.google.com with SMTP id l7so143096966qtd.1 for ; Mon, 23 Jan 2017 11:46:21 -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:in-reply-to :references; bh=ys3CXIXsQTFjvt8H4laUjS+kzyEtgO4QNz0Xek17y6w=; b=Sw01PyIUes8K4PZjxzJIYOj5xMJoY94YrdfQ3pSwgOK+5JpYIe5D4kDpbAszeDwHJx XOjRbQcsehrSpf1Qhz4IvhvzyEUF8HXpcv74ziyLFA3l1rK3lS3j3J3ydiB6jQdxQTAZ Czq2BNazvYyu5xvBX69Hdwdgi5LBkPgPUgr8tsLZOXL4loYJhiRREqI26oPYmP9XNKJf DpED5Cx+Tlbxf4F2SkVHezLOTFKftj0XWQAMuTTWMEtYrXCdU8SPnmSKfOfoTbJx4Nyy h+BDVec7YOwk6Xi4sEPRokVxYSkDbcpNgQYtAI4bdBYxB/6pPnb5sCgVabCGx+tRWRnB elfg== X-Gm-Message-State: AIkVDXL8C/ZX9AIZ4J8mFQrkjis9CFP7vtpb5GRDLJuT7R8cmnz2fkrLjJlSGKFqeQXzlLQ/5U4= X-Received: by 10.55.212.22 with SMTP id l22mr25266501qki.48.1485200780525; Mon, 23 Jan 2017 11:46:20 -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 d67sm13994859qkg.17.2017.01.23.11.46.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jan 2017 11:46:19 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 23 Jan 2017 14:46:08 -0500 Message-Id: <20170123194608.4552-5-mike.holmes@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170123194608.4552-1-mike.holmes@linaro.org> References: <20170123194608.4552-1-mike.holmes@linaro.org> Subject: [lng-odp] [PATCH 4/4] examples: use odph_api.h 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" clean up all the examples and just use odph_api.h Signed-off-by: Mike Holmes --- 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 +- 14 files changed, 12 insertions(+), 38 deletions(-) -- 2.9.3 diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index c2f69d4..d67fe5a 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -12,9 +12,7 @@ #include #include -#include -#include -#include +#include #include #include #include diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 194c0a0..6ac8f2d 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -20,11 +20,7 @@ #include -#include -#include -#include -#include -#include +#include #define MAX_WORKERS 32 /**< max number of works */ #define SHM_PKT_POOL_SIZE (512*2048) /**< pkt pool size */ diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index d686160..9ed3aa2 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -24,11 +24,7 @@ #include -#include -#include -#include -#include -#include +#include #include #include diff --git a/example/ipsec/odp_ipsec_fwd_db.h b/example/ipsec/odp_ipsec_fwd_db.h index 748ae04..152bdfb 100644 --- a/example/ipsec/odp_ipsec_fwd_db.h +++ b/example/ipsec/odp_ipsec_fwd_db.h @@ -12,7 +12,6 @@ extern "C" { #endif #include -#include #include #define OIF_LEN 32 diff --git a/example/ipsec/odp_ipsec_loop_db.h b/example/ipsec/odp_ipsec_loop_db.h index 0778186..1f9ade6 100644 --- a/example/ipsec/odp_ipsec_loop_db.h +++ b/example/ipsec/odp_ipsec_loop_db.h @@ -12,7 +12,6 @@ extern "C" { #endif #include -#include #include /** diff --git a/example/ipsec/odp_ipsec_misc.h b/example/ipsec/odp_ipsec_misc.h index 6a49dcb..e0320eb 100644 --- a/example/ipsec/odp_ipsec_misc.h +++ b/example/ipsec/odp_ipsec_misc.h @@ -12,9 +12,7 @@ extern "C" { #endif #include -#include -#include -#include +#include #ifndef TRUE #define TRUE 1 diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c index 4dc9acf..428ec04 100644 --- a/example/ipsec/odp_ipsec_stream.c +++ b/example/ipsec/odp_ipsec_stream.c @@ -21,9 +21,7 @@ #include -#include -#include -#include +#include #include #include diff --git a/example/l2fwd_simple/odp_l2fwd_simple.c b/example/l2fwd_simple/odp_l2fwd_simple.c index 2473a11..b97808f 100644 --- a/example/l2fwd_simple/odp_l2fwd_simple.c +++ b/example/l2fwd_simple/odp_l2fwd_simple.c @@ -10,9 +10,7 @@ #include #include -#include -#include -#include +#include #define POOL_NUM_PKT 8192 #define POOL_SEG_LEN 1856 diff --git a/example/l3fwd/odp_l3fwd.c b/example/l3fwd/odp_l3fwd.c index 4e35b64..ba06972 100644 --- a/example/l3fwd/odp_l3fwd.c +++ b/example/l3fwd/odp_l3fwd.c @@ -14,11 +14,7 @@ #include #include -#include -#include -#include -#include -#include +#include #include "odp_l3fwd_db.h" #include "odp_l3fwd_lpm.h" diff --git a/example/l3fwd/odp_l3fwd_db.h b/example/l3fwd/odp_l3fwd_db.h index 1b24f1a..8df2999 100644 --- a/example/l3fwd/odp_l3fwd_db.h +++ b/example/l3fwd/odp_l3fwd_db.h @@ -12,7 +12,7 @@ extern "C" { #endif #include -#include +#include #define OIF_LEN 32 #define MAX_DB 32 diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index 6e24deb..ea84282 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -13,9 +13,7 @@ #include #include -#include -#include -#include +#include /** @def MAX_WORKERS * @brief Maximum number of worker threads diff --git a/example/switch/odp_switch.c b/example/switch/odp_switch.c index 2bbce10..561c293 100644 --- a/example/switch/odp_switch.c +++ b/example/switch/odp_switch.c @@ -11,9 +11,7 @@ #include #include -#include -#include -#include +#include /** Maximum number of worker threads */ #define MAX_WORKERS 32 diff --git a/example/time/time_global_test.c b/example/time/time_global_test.c index dd33949..e24e9f4 100644 --- a/example/time/time_global_test.c +++ b/example/time/time_global_test.c @@ -8,7 +8,7 @@ #include #include -#include +#include #define MAX_WORKERS 32 #define ITERATION_NUM 2048 diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index b847e2b..1088a74 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -14,7 +14,7 @@ #include /* ODP helper for Linux apps */ -#include +#include /* GNU lib C */ #include