From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4E8BA1B1A5 for ; Tue, 9 Jan 2018 10:09:45 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2018 01:09:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,334,1511856000"; d="scan'208";a="193359929" Received: from pgsmsx111.gar.corp.intel.com ([10.108.55.200]) by fmsmga005.fm.intel.com with ESMTP; 09 Jan 2018 01:09:43 -0800 Received: from pgsmsx112.gar.corp.intel.com ([169.254.3.86]) by PGSMSX111.gar.corp.intel.com ([169.254.2.98]) with mapi id 14.03.0319.002; Tue, 9 Jan 2018 17:09:42 +0800 From: "Dai, Wei" To: "Zhang, Helin" , "Wu, Jingjing" , "Xing, Beilei" CC: "dev@dpdk.org" Thread-Topic: [PATCH v9] net/i40e: determine number of queues per VF during run time Thread-Index: AQHTfl/gAfWVlifZSkaLfq+XbKLbVKNpCSIAgAJMDwA= Date: Tue, 9 Jan 2018 09:09:41 +0000 Message-ID: <49759EB36A64CF4892C1AFEC9231E8D66CF20117@PGSMSX112.gar.corp.intel.com> References: <1514202309-56359-1-git-send-email-wei.dai@intel.com> <1514301894-58374-1-git-send-email-wei.dai@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzc2ZjNkMjctNTFlMi00NDY4LTg1YTktMDljMGU1YjVlMjgwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ijl5Q0gweTFnRlVNb2g2SVBTazZoUWtTNUJTRjhMTHUwekkyV3RjdVwvS0V3PSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v9] 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 09:09:45 -0000 Thanks to Helin and Ferruh, I will submit v10 patch following your guide. > -----Original Message----- > From: Zhang, Helin > Sent: Monday, January 8, 2018 2:01 PM > To: Dai, Wei ; Wu, Jingjing ; > Xing, Beilei > Cc: dev@dpdk.org > Subject: RE: [PATCH v9] net/i40e: determine number of queues per VF durin= g > run time >=20 >=20 >=20 > > -----Original Message----- > > From: Dai, Wei > > Sent: Tuesday, December 26, 2017 11:25 PM > > To: Wu, Jingjing; Xing, Beilei; Zhang, Helin > > Cc: dev@dpdk.org; Dai, Wei > > Subject: [PATCH v9] net/i40e: determine number of queues per VF during > > run time > > > > 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 > > during run time. For example, if the PCI address of an i40e PF is > > aaaa:bb.cc, with the EAL parameter -w aaaa:bb.cc,queue-num-per-vf=3D8 , > > the number of queues per VF created from this PF is 8. > > If there is no "queue-num-per-vf" setting in EAL parameters, it is 4 > > by default 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 . > > > > Signed-off-by: Wei Dai > > Acked-by: Konstantin Ananyev > > --- > > v9: > > v9 =3D v8+v7, is a complete version for maintainer's convenience. > > v8: > > As v7 patch has been accepted into dpdk-next-net-intel, this patch > > is based on v7 patch. > > add description in i40e document > > fix the last member of valid_keys[] for rte_kvargs_parse( ) > > add RTE_PMD_REGISTER_PARAM_STRING for this feature > > v7: > > use the macro instead of natural number > > correct git log message as the EAL parameter is only valid for PF > > v6: > > fix a small bug when detecting end character of strtoul > > v5: > > fix git log message and WARNING of coding stype > > v4: > > use rte_kvargs instead of pervious parsing function; > > use malloc/free instead of rte_zmalloc/rte_free. > > v3: > > fix WARNING of coding style issues from checkpatch@dpdk.org > > v2: > > fix WARNING of coding style issues from checkpatch@dpdk.org > > --- > > config/common_base | 1 - > > doc/guides/nics/i40e.rst | 12 ++++--- > > drivers/net/i40e/i40e_ethdev.c | 75 > > +++++++++++++++++++++++++++++++++++++++--- > > 3 files changed, 78 insertions(+), 10 deletions(-) >=20 > BTW, I think release notes should be updated for your modifications.