From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 386A98D8C for ; Wed, 6 Jul 2016 16:45:04 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id f126so176593663wma.1 for ; Wed, 06 Jul 2016 07:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=MoR43INl5iA0X6wTU1aC/tMIE6zNIOcWTmcdWssb2gk=; b=o8vroRwJC6WF8LfHH0vdPUPD0lvIirjFKo2LV6TKZUQ4bKJHAUEuN2rryEgaazmS73 CpqC81q9MoJyMZ5vqsp8NgPaZDVfSHW6gGGKRjyhyX89Bf316qFfNBYnqSvvvHZhotBP c6P2Fhohq/UsrZvd1t8VIOfFMt93N7pY783jx3TCwHB+NbMX/D9xUBLEqRGJTnX2VJeE TKCNEoKg3DqQnunpPwl+iU1dhj9FEJKQ5ZtMr1DLOaP0gx8yYMd3gmS5ZmDC1OHTYuE+ wdGFL+lxQhFGCRQ0jfI8tXVNUGTKowmRMMsfLv00ADc6mW9WUKS4i9Zc3YlPuj7w7uCg J8yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=MoR43INl5iA0X6wTU1aC/tMIE6zNIOcWTmcdWssb2gk=; b=FFBbTDrkwBLXc8l7HB5jBBJWNR4s4fEaK5M8JV0sNICwiJ7EXsKe/9XszgsZGHCM+k TeFjU2wRGrU7kpAxuy0xfxi3tKbi+k82zWxUnBEvk6blXQeDM5BEBgKM+1aHSR6ITJmc FPb3qm6jBTnmK0k5rv49TWZfZnRM3vTyQTZlKRgc5zv3yyjWHI0vRpG7GEI3KqeJS1zl 8mQJNpNYcpvvUaTz7ACIoeMXr++XiwuQWMW7jO6c4RrHP4h3nMvZ9EylEq75zv/ZP1bk jEhZu6i9vzhjrf6fYIt+euO46bAdE7Wli7STvKLmDIUTcHna6h8CtIo4hbyfCgpVtaec E4LQ== X-Gm-Message-State: ALyK8tJvm/42AqAeC8dwePRUSdWF90P7Xv9RmtcfpKN6H5x+HOi9gkZ+3vyJAFVeofPvLG6h X-Received: by 10.28.220.6 with SMTP id t6mr22482347wmg.42.1467816303776; Wed, 06 Jul 2016 07:45:03 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id q63sm4146606wma.0.2016.07.06.07.45.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 07:45:03 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 6 Jul 2016 16:44:53 +0200 Message-Id: <1467816293-19015-4-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1467816293-19015-1-git-send-email-thomas.monjalon@6wind.com> References: <1467816293-19015-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 3/3] examples: fix dependencies on hash library 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: Wed, 06 Jul 2016 14:45:04 -0000 The multi_process example do not need rte_hash. But these examples cannot compile if rte_hash is not available: - ipsec-secgw (was already protected - no change) - ipv4_multicast - l3fwd-power - l3fwd-vf - tep_termination - ip_pipeline The ip_pipeline example is not disabled because its dependencies are handled with #ifdef. It may require a separate fix. Signed-off-by: Thomas Monjalon --- examples/Makefile | 8 ++++++-- examples/multi_process/client_server_mp/mp_server/init.c | 1 - examples/multi_process/client_server_mp/mp_server/main.c | 1 - 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index f650d3e..18b41b9 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -54,7 +54,7 @@ endif ifeq ($(CONFIG_RTE_LIBRTE_ACL)$(CONFIG_RTE_LIBRTE_HASH)$(CONFIG_RTE_LIBRTE_LPM),yyy) DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw endif -DIRS-y += ipv4_multicast +DIRS-$(CONFIG_RTE_LIBRTE_HASH) += ipv4_multicast DIRS-$(CONFIG_RTE_LIBRTE_KNI) += kni DIRS-y += l2fwd ifneq ($(PQOS_INSTALL_PATH),) @@ -65,9 +65,11 @@ DIRS-$(CONFIG_RTE_LIBRTE_IVSHMEM) += l2fwd-ivshmem DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += l2fwd-jobstats DIRS-y += l2fwd-keepalive DIRS-y += l2fwd-keepalive/ka-agent +ifeq ($(CONFIG_RTE_LIBRTE_HASH),y) DIRS-$(CONFIG_RTE_LIBRTE_LPM) += l3fwd +endif DIRS-$(CONFIG_RTE_LIBRTE_ACL) += l3fwd-acl -ifeq ($(CONFIG_RTE_LIBRTE_LPM),y) +ifeq ($(CONFIG_RTE_LIBRTE_LPM)$(CONFIG_RTE_LIBRTE_HASH),yy) DIRS-$(CONFIG_RTE_LIBRTE_POWER) += l3fwd-power DIRS-y += l3fwd-vf endif @@ -82,7 +84,9 @@ DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += qos_sched DIRS-y += quota_watermark DIRS-$(CONFIG_RTE_ETHDEV_RXTX_CALLBACKS) += rxtx_callbacks DIRS-y += skeleton +ifeq ($(CONFIG_RTE_LIBRTE_HASH),y) DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += tep_termination +endif DIRS-$(CONFIG_RTE_LIBRTE_TIMER) += timer DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) += vhost_xen diff --git a/examples/multi_process/client_server_mp/mp_server/init.c b/examples/multi_process/client_server_mp/mp_server/init.c index ecb61c6..ad941a7 100644 --- a/examples/multi_process/client_server_mp/mp_server/init.c +++ b/examples/multi_process/client_server_mp/mp_server/init.c @@ -60,7 +60,6 @@ #include #include #include -#include #include #include diff --git a/examples/multi_process/client_server_mp/mp_server/main.c b/examples/multi_process/client_server_mp/mp_server/main.c index de54c67..a6dc12d 100644 --- a/examples/multi_process/client_server_mp/mp_server/main.c +++ b/examples/multi_process/client_server_mp/mp_server/main.c @@ -65,7 +65,6 @@ #include #include #include -#include #include #include "common.h" -- 2.7.0