From: Ferruh Yigit Subject: Re: [RFC 2/2] net/i40e: update requested queue pair num check for rounding Date: Mon, 11 Mar 2019 12:35:48 +0000 Message-ID: References: <20190305163039.16790-1-ktraynor@redhat.com> <20190305163039.16790-2-ktraynor@redhat.com> <039ED4275CED7440929022BC67E706115334A38D@SHSMSX103.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , "Yan, Zhirun" To: "Zhang, Qi Z" , Kevin Traynor Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 447032C24 for ; Mon, 11 Mar 2019 13:35:51 +0100 (CET) In-Reply-To: <039ED4275CED7440929022BC67E706115334A38D@SHSMSX103.ccr.corp.intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 3/11/2019 2:18 AM, Zhang, Qi Z wrote: > > >> -----Original Message----- >> From: Kevin Traynor [mailto:ktraynor@redhat.com] >> Sent: Wednesday, March 6, 2019 12:31 AM >> To: Zhang, Qi Z >> Cc: dev@dpdk.org; Kevin Traynor ; Yan, Zhirun >> >> Subject: [RFC 2/2] net/i40e: update requested queue pair num check for >> rounding >> >> Since rounding up the requested queue pairs to allow the vf to request a >> non-aligned number was added, it may happen that the requested number is >> less than the available num of queues but the rounded up number is greater. In >> this case, it is not caught with the usual checks but later when there is a reset and >> failed setup. >> >> By rounding earlier the checks can be done before a failed reset occurs, and a >> rounded max amount of available queues can be returned to the vf. >> >> Cc: zhirun.yan@intel.com >> Signed-off-by: Kevin Traynor > > Acked-by: Qi Zhang > > Applied to dpdk-next-net-intel. > These were checkpatch warnings because of whitespace (spaces before tabs), fixed while merging to next-net.