From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6E8341B16B for ; Tue, 9 Jan 2018 15:36:18 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2018 06:36:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,335,1511856000"; d="scan'208";a="165370180" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 09 Jan 2018 06:36:17 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 Jan 2018 06:36:16 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 Jan 2018 06:36:16 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Tue, 9 Jan 2018 22:36:14 +0800 From: "Zhang, Helin" To: "Dai, Wei" , "Yigit, Ferruh" , "Wu, Jingjing" , "Xing, Beilei" CC: "dev@dpdk.org" Thread-Topic: [PATCH v10] net/i40e: determine number of queues per VF during run time Thread-Index: AQHTiSn/cTaaTtj500O8EHVN+InHdaNrkuZg Date: Tue, 9 Jan 2018 14:36:13 +0000 Message-ID: References: <1514301894-58374-1-git-send-email-wei.dai@intel.com> <1515488167-33931-1-git-send-email-wei.dai@intel.com> In-Reply-To: <1515488167-33931-1-git-send-email-wei.dai@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v10] net/i40e: determine number of queues per VF during run time 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: Tue, 09 Jan 2018 14:36:19 -0000 > -----Original Message----- > From: Dai, Wei > Sent: Tuesday, January 9, 2018 4:56 PM > To: Zhang, Helin; Yigit, Ferruh; Wu, Jingjing; Xing, Beilei > Cc: dev@dpdk.org; Dai, Wei > Subject: [PATCH v10] net/i40e: determine number of queues per VF during r= un > time >=20 > Without this patch, the number of queues per i40e VF is defined as 4 by > CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF=3D4 in config/common_base. > It is fixed value determined in building time and can't be changed during= run > time. > With this patch, the number of queues per i40e VF can be determinated dur= ing > run time. For example, if the PCI address of an i40e PF is aaaa:bb.cc, wi= th the > EAL parameter -w aaaa:bb.cc,queue-num-per-vf=3D8 , the number of queues p= er > VF created from this PF is 8. > If there is no "queue-num-per-vf" setting in EAL parameters, it is 4 by d= efault as > before. And if the value after the "queue-num-per-vf" > is invalid, it is set as 4 forcibly. The valid values include 1, 2, 4, 8,= 16 . >=20 > Signed-off-by: Wei Dai > Acked-by: Konstantin Ananyev Applied to dpdk-next-net-intel with minor commit log changes. Thanks! /Helin