From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 493A52E8F for ; Mon, 11 Mar 2019 03:19:01 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2019 19:19:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,466,1544515200"; d="scan'208";a="132958014" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 10 Mar 2019 19:18:59 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 10 Mar 2019 19:18:59 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 10 Mar 2019 19:18:59 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.134]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.74]) with mapi id 14.03.0415.000; Mon, 11 Mar 2019 10:18:58 +0800 From: "Zhang, Qi Z" To: Kevin Traynor CC: "dev@dpdk.org" , "Yan, Zhirun" Thread-Topic: [RFC 2/2] net/i40e: update requested queue pair num check for rounding Thread-Index: AQHU03DmNGw6Bc7JSkety4GH1v/xCaYFujcw Date: Mon, 11 Mar 2019 02:18:57 +0000 Message-ID: <039ED4275CED7440929022BC67E706115334A38D@SHSMSX103.ccr.corp.intel.com> References: <20190305163039.16790-1-ktraynor@redhat.com> <20190305163039.16790-2-ktraynor@redhat.com> In-Reply-To: <20190305163039.16790-2-ktraynor@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTQ4N2YxZGUtMmI1OC00MGE1LTkyODktNmNjNDg4M2RmNWIzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiank3ZE8waVRxaDhuNW9rSUVEVWRsWU1PNmlEdXVJdUFMVzVJZVQ0MVhcL05vTHdVRzVaZHdlbVwvOEtZTk93UmtkIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action 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] [RFC 2/2] net/i40e: update requested queue pair num check for rounding 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, 11 Mar 2019 02:19:01 -0000 > -----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 >=20 > 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 greate= r. In > this case, it is not caught with the usual checks but later when there is= a reset and > failed setup. >=20 > 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. >=20 > Cc: zhirun.yan@intel.com > Signed-off-by: Kevin Traynor Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi