From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4BF128DB4 for ; Fri, 20 Nov 2015 11:38:25 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 20 Nov 2015 02:38:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,321,1444719600"; d="scan'208";a="855667896" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga002.fm.intel.com with ESMTP; 20 Nov 2015 02:38:24 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.203]) by IRSMSX153.ger.corp.intel.com ([169.254.9.208]) with mapi id 14.03.0248.002; Fri, 20 Nov 2015 10:38:22 +0000 From: "Ananyev, Konstantin" To: Rahul Lakkireddy , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] ethdev: add a missing sanity check for nb_tx_desc during txq setup Thread-Index: AQHRI34LQfOZFcy4TUKHV5bnIeGStJ6kt9Eg Date: Fri, 20 Nov 2015 10:38:21 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725836ACA797@irsmsx105.ger.corp.intel.com> References: <1448015197-30094-1-git-send-email-rahul.lakkireddy@chelsio.com> In-Reply-To: <1448015197-30094-1-git-send-email-rahul.lakkireddy@chelsio.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Kumar Sanghvi , Felix Marti , Nirranjan Kirubaharan Subject: Re: [dpdk-dev] [PATCH] ethdev: add a missing sanity check for nb_tx_desc during txq setup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 10:38:25 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Rahul Lakkireddy > Sent: Friday, November 20, 2015 10:27 AM > To: dev@dpdk.org > Cc: Felix Marti; Kumar Sanghvi; Nirranjan Kirubaharan > Subject: [dpdk-dev] [PATCH] ethdev: add a missing sanity check for nb_tx_= desc during txq setup >=20 > Add a sanity check for number of tx descriptors requested during tx > queue setup. Return -EINVAL if the number requested does not meet > the tx descriptor requirements of the device. >=20 > Fixes: 80a1deb4c77a ("ethdev: add API to retrieve queue information") >=20 > Signed-off-by: Rahul Lakkireddy > Signed-off-by: Kumar Sanghvi > --- Acked-by: Konstantin Ananyev Thanks for catching it.