From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 841516CBB for ; Mon, 17 Oct 2016 17:41:15 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 17 Oct 2016 08:41:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,357,1473145200"; d="scan'208";a="773623733" Received: from sie-lab-212-251.ir.intel.com (HELO silpixa00381635.ir.intel.com) ([10.237.212.251]) by FMSMGA003.fm.intel.com with ESMTP; 17 Oct 2016 08:41:13 -0700 From: Jasvinder Singh To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com Date: Mon, 17 Oct 2016 16:48:57 +0100 Message-Id: <1476719337-97327-1-git-send-email-jasvinder.singh@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH] examples/ip_pipeline: fix freeBSD build error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 15:41:15 -0000 Error log: CC init.o examples/ip_pipeline/init.c:38:22: fatal error: linux/if.h: No such file or directory #include ^ Fixes: 3f2c9f3bb6c6 ("examples/ip_pipeline: add TAP port") Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/init.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c index 4fed474..3b36b53 100644 --- a/examples/ip_pipeline/init.c +++ b/examples/ip_pipeline/init.c @@ -35,8 +35,10 @@ #include #include #include +#ifdef RTE_EXEC_ENV_LINUXAPP #include #include +#endif #include #include #include @@ -1160,6 +1162,15 @@ app_init_tm(struct app_params *app) } } +#ifndef RTE_EXEC_ENV_LINUXAPP +static void +app_init_tap(struct app_params *app) { + if (app->n_pktq_tap == 0) + return; + + rte_panic("TAP device not supported.\n"); +} +#else static void app_init_tap(struct app_params *app) { @@ -1187,6 +1198,7 @@ app_init_tap(struct app_params *app) app->tap[i] = fd; } } +#endif #ifdef RTE_LIBRTE_KNI static int @@ -1404,6 +1416,7 @@ void app_pipeline_params_get(struct app_params *app, out->burst_size = app->tm_params[in->id].burst_read; break; } +#ifdef RTE_EXEC_ENV_LINUXAPP case APP_PKTQ_IN_TAP: { struct app_pktq_tap_params *tap_params = @@ -1420,6 +1433,7 @@ void app_pipeline_params_get(struct app_params *app, out->burst_size = app->tap_params[in->id].burst_read; break; } +#endif #ifdef RTE_LIBRTE_KNI case APP_PKTQ_IN_KNI: { @@ -1564,6 +1578,7 @@ void app_pipeline_params_get(struct app_params *app, app->tm_params[in->id].burst_write; break; } +#ifdef RTE_EXEC_ENV_LINUXAPP case APP_PKTQ_OUT_TAP: { struct rte_port_fd_writer_params *params = @@ -1575,6 +1590,7 @@ void app_pipeline_params_get(struct app_params *app, app->tap_params[in->id].burst_write; break; } +#endif #ifdef RTE_LIBRTE_KNI case APP_PKTQ_OUT_KNI: { -- 2.5.5