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 0A5F1378E for ; Thu, 16 Feb 2017 14:58:42 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP; 16 Feb 2017 05:58:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,169,1484035200"; d="scan'208";a="65941549" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 16 Feb 2017 05:58:41 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 16 Feb 2017 05:58:41 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 16 Feb 2017 05:58:41 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Thu, 16 Feb 2017 21:58:39 +0800 From: "Wu, Jingjing" To: Thomas Monjalon , "Zhang, Helin" CC: "Mcnamara, John" , "dev@dpdk.org" Thread-Topic: i40e queues per VF Thread-Index: AQHShqonM5MJAcpjakyBpOyzlbcRnqFrqWpg Date: Thu, 16 Feb 2017 13:58:39 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810CDE4AF@SHSMSX103.ccr.corp.intel.com> References: <32336171.7h5g7kEJXa@xps13> In-Reply-To: <32336171.7h5g7kEJXa@xps13> 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] i40e queues 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: Thu, 16 Feb 2017 13:58:43 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Tuesday, February 14, 2017 6:07 PM > To: Zhang, Helin ; Wu, Jingjing > Cc: Mcnamara, John ; dev@dpdk.org > Subject: i40e queues per VF >=20 > Hi, >=20 > When reading the documentation, it is not easy to understand the capabili= ty of > i40evf for the number of queues. >=20 > First, please could you explain why we need a build-time config option? > In the doc, there is neither justification nor tuning guidelines: >=20 > http://dpdk.org/doc/guides/nics/i40e.html#config-file-options > " > CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF (default 64) Number of > queues reserved for PF. > CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF (default 4) Number of > queues reserved for each SR-IOV VF. > " This number is used as initialization time to allocate queue number for PF/VF for HW's queue pool. Will add more description in i40e.rst. >=20 > I feel these are hard limits and should be some constants in the code, no= t some > build configuration options. >=20 > The other doc to look at is: > http://dpdk.org/doc/guides/nics/intel_vf.html#intel-fortville-10-40-gigab= it- > ethernet-controller-vf-infrastructure > " > Each VF can have a maximum of 16 queue pairs. > " >=20 > Do we agree that a queue pair is 1 Rx queue / 1 Tx queue? > Note: the concept of queue pairs in Intel VF should be explained somewher= e. >=20 Yes. > Below, a different limitation is given: > " > The available queue number(at most 4) per VF depends on the total number = of > pool, which is determined by the max number of VF at PF initialization st= age and > the number of queue specified in config " > I think there may be some inconsistent description in doc intel_vf.rst due= to Multiple kinds of NICs. We should correct them. Thanks for pointing that. > So what is the real maximum of queue pairs? 4 or 16? > The datasheet talks about 16 queues. Is it 8 pairs? That's is 16 queue pairs. 16 RX queues and 16 Tx queues. >=20 > Is there something to configure the number of queues when creating VF wit= h the > kernel driver? In kernel driver, it seems at most only 4 queues are supported. That's Why we add build-time config option to make more queues are possible. Thanks Jingjing