From patchwork Mon Sep 4 05:57:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yang, Zhiyong" X-Patchwork-Id: 28315 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 895467CC3; Mon, 4 Sep 2017 07:57:56 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 45DC87CEC for ; Mon, 4 Sep 2017 07:57:52 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2017 22:57:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,473,1498546800"; d="scan'208";a="147809969" Received: from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.182]) by fmsmga006.fm.intel.com with ESMTP; 03 Sep 2017 22:57:50 -0700 From: Zhiyong Yang To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, keith.wiles@intel.com, stephen@networkplumber.org, Zhiyong Yang Date: Mon, 4 Sep 2017 13:57:33 +0800 Message-Id: <20170904055734.21354-4-zhiyong.yang@intel.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170904055734.21354-1-zhiyong.yang@intel.com> References: <20170809084203.17562-1-zhiyong.yang@intel.com> <20170904055734.21354-1-zhiyong.yang@intel.com> Subject: [dpdk-dev] [PATCH v2 3/4] common_base: extend RTE_MAX_ETHPORTS from 32 to 1024 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 reasons to modify RTE_MAX_ETHPORTS is the following. 1. RTE_MAX_ETHPORTS=32 by default has not met user's requirements with development of virtualization technology. Some vdev users have to modify the setting before the compiling. 2. port_id have been extended to 16 bits definition. But for many samples such as testpmd, l3fwd, num of port is still limited to RTE_MAX_ETHPORTS=32 by default. This may limit usage of 16 bits port_id. So, it is necessary to enlarge RTE_MAX_ETHPORTS to more than 256. Signed-off-by: Zhiyong Yang --- config/common_base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/common_base b/config/common_base index 5e97a08b6..dccc13e31 100644 --- a/config/common_base +++ b/config/common_base @@ -131,7 +131,7 @@ CONFIG_RTE_LIBRTE_KVARGS=y # CONFIG_RTE_LIBRTE_ETHER=y CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=n -CONFIG_RTE_MAX_ETHPORTS=32 +CONFIG_RTE_MAX_ETHPORTS=1024 CONFIG_RTE_MAX_QUEUES_PER_PORT=1024 CONFIG_RTE_LIBRTE_IEEE1588=n CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16