From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 4FCBF99A6 for ; Mon, 31 Jul 2017 21:26:30 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP; 31 Jul 2017 12:26:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,304,1498546800"; d="scan'208";a="131661948" Received: from dpdk26.sh.intel.com ([10.67.110.152]) by orsmga005.jf.intel.com with ESMTP; 31 Jul 2017 12:26:29 -0700 From: Wenzhuo Lu To: dev@dpdk.org Cc: Wenzhuo Lu Date: Tue, 1 Aug 2017 03:27:17 +0800 Message-Id: <1501529240-64181-1-git-send-email-wenzhuo.lu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dpdk-dev] [RFC PATCH 0/3] configurable max queue number per VF 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: Mon, 31 Jul 2017 19:26:31 -0000 Currently, on i40e, the max queue number per VF is set by a macro. It means the value is decided when compiling. It's not friendly to the users. Because every time the users want to change the value, the code need to be re-compiled. The reason of using a macro for the max queue number is that the number is needed at the very early stage. At this stage, we haven't got the device configuration yet. There's a simple idea to replace the macro by a global varialbe. Then the users can set the value without compiling the code again and again. This patch set implements this idea and is an example to show how to use it. Wenzhuo Lu (3): librte_ether: VF max queue number setting net/i40e: max VF queue number setting app/testpmd: a parameter to set max queue per VF app/test-pmd/parameters.c | 33 ++++++++++++++++++++++++++++++++- app/test-pmd/testpmd.c | 2 ++ app/test-pmd/testpmd.h | 1 + config/common_base | 1 - drivers/net/i40e/i40e_ethdev.c | 4 ++-- lib/librte_ether/rte_ethdev.c | 3 +++ lib/librte_ether/rte_ethdev.h | 2 ++ 7 files changed, 42 insertions(+), 4 deletions(-) -- 1.9.3