From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id EDA4F5688 for ; Fri, 25 Mar 2016 17:08:14 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 25 Mar 2016 09:08:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,391,1455004800"; d="scan'208";a="73208077" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by fmsmga004.fm.intel.com with ESMTP; 25 Mar 2016 09:08:12 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.13]) by IRSMSX107.ger.corp.intel.com ([169.254.10.137]) with mapi id 14.03.0248.002; Fri, 25 Mar 2016 16:08:10 +0000 From: "De Lara Guarch, Pablo" To: "Pattan, Reshma" , "dev@dpdk.org" , "Ananyev, Konstantin" CC: "Pattan, Reshma" Thread-Topic: [dpdk-dev] [PATCH v3] examples/l3fwd: fix validation for queue id of config tuple Thread-Index: AQHRhqwpKtqHyzarkk6ffdYH+Eqbcp9qU52w Date: Fri, 25 Mar 2016 16:08:10 +0000 Message-ID: References: <1458861061-11211-1-git-send-email-reshma.pattan@intel.com> <1458918824-15168-1-git-send-email-reshma.pattan@intel.com> In-Reply-To: <1458918824-15168-1-git-send-email-reshma.pattan@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWViZmQyNzgtYTgwYi00ZDgwLWJlMDItYThlNTI1ZmMwNDI0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Iks0ZDlMeENRd0g3QStyRjBUSW5yMDdmeTAxQ0VzWXdrQXdkSDNNODlLUTA9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] examples/l3fwd: fix validation for queue id of config tuple 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, 25 Mar 2016 16:08:15 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Reshma Pattan > Sent: Friday, March 25, 2016 3:14 PM > To: dev@dpdk.org; Ananyev, Konstantin > Cc: Pattan, Reshma > Subject: [dpdk-dev] [PATCH v3] examples/l3fwd: fix validation for queue i= d of > config tuple >=20 > Added validation for queue id of config parameter tuple. >=20 > This validation enforces user to enter queue ids of a port > from 0 and in sequence. >=20 > This additional validation on queue ids avoids ixgbe crash caused by null > rxq pointer access inside ixgbe_dev_rx_init. >=20 > Reason for null rxq is, L3fwd application allocates memory only for queue= s > passed by user. > But rte_eth_dev_start tries to initialize rx queues in sequence from 0 t= o > nb_rx_queues, > which is not true and coredump while accessing the unallocated queue . >=20 > Fixes: af75078fece3 ("first public release") >=20 > Signed-off-by: Reshma Pattan Acked-by: Pablo de Lara