From patchwork Thu Apr 19 16:09:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 38564 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F124D7CD5; Thu, 19 Apr 2018 18:09:45 +0200 (CEST) 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Tested-by: Ferruh Yigit Acked-by: Tomasz Duszynski --- 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