From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id A2D137CC5 for ; Thu, 19 Apr 2018 18:09:44 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 847FD21BF2; Thu, 19 Apr 2018 12:09:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 19 Apr 2018 12:09:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=mesmtp; bh=2g8B6NwP+LA4UUkj4uXuwVGoIZjeHd5lws0XSu gg5EE=; b=YuL7XNz7yEL9uFSDKKXwhCokA6gwTQPRiUcPMqvopjp/h7bW2gaXbX PLVD+jESr5RKNYZ6uyE+bC5jXMU7jcp1zTuTqnF5P71JUI0gALWhUM3NV2sYYj90 ReqZbCJKg9M2gnIDyohPgjVJ70KV+rdCzHQKOaqr6T5wNbDACQ41U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=2g8B6NwP+LA4UUkj4 uXuwVGoIZjeHd5lws0XSugg5EE=; b=D7QVgMrVnCcTMs21MH0P0tRUNOmT7EqGd PFEywFqKrQ+GQj8jJ4NDa3mzaOv410LhQ5C/+g7QtfJn8M4C9aUjMVExUnDg96UW nZlWg1HigEDLncT8N0lpJ78iiiy80FuvTeJOCYRcUXxyHfjfFKW6rBu7rWZwdv3A TMztwiAnepo9mXb6BtGhocqS5hD3MuKu26JWJsHgwzdPjFswfC7VP5Ppx+cmPeZ+ nD+78BFyN/rfKyRkzTnd+vmKOO8Ul7hgsz9aB03GqyUdG8e4ffZiW4FbszOv9LvS oA3RCvXWBnhgWHN+N1uKD+Mqv4TBO1wUD0/SwWazgsl0TqF1YTz+Q== X-ME-Sender: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 0D1CFE44D5; Thu, 19 Apr 2018 12:09:41 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: nsamsono@marvell.com, ferruh.yigit@intel.com Date: Thu, 19 Apr 2018 18:09:34 +0200 Message-Id: <20180419160934.24577-1-thomas@monjalon.net> X-Mailer: git-send-email 2.16.2 Subject: [dpdk-dev] [PATCH] net/mvpp2: fix build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2018 16:09:44 -0000 The iterator RTE_ETH_FOREACH_DEV (added in below commit) requires to enable experimental APIs. Fixing also the config option rename in the build test. Fixes: 8728ccf37615 ("fix ethdev ports enumeration") Fixes: fe93968722af ("net/mrvl: rename PMD as mvpp2") Reported-by: Ferruh Yigit Signed-off-by: Thomas Monjalon --- devtools/test-build.sh | 2 +- drivers/net/mvpp2/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/test-build.sh b/devtools/test-build.sh index 3362edcc5..28e032417 100755 --- a/devtools/test-build.sh +++ b/devtools/test-build.sh @@ -202,7 +202,7 @@ config () # test -z "$LIBMUSDK_PATH" || \ sed -ri 's,(PMD_MRVL_CRYPTO=)n,\1y,' $1/.config test -z "$LIBMUSDK_PATH" || \ - sed -ri 's,(MRVL_PMD=)n,\1y,' $1/.config + sed -ri 's,(MVPP2_PMD=)n,\1y,' $1/.config build_config_hook $1 $2 $3 # Explicit enabler/disabler (uppercase) diff --git a/drivers/net/mvpp2/Makefile b/drivers/net/mvpp2/Makefile index 2383ec18c..db4576f9c 100644 --- a/drivers/net/mvpp2/Makefile +++ b/drivers/net/mvpp2/Makefile @@ -27,6 +27,7 @@ CFLAGS += -I$(LIBMUSDK_PATH)/include CFLAGS += -DMVCONF_TYPES_PUBLIC CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -O3 LDLIBS += -L$(LIBMUSDK_PATH)/lib LDLIBS += -lmusdk -- 2.16.2