From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH 1/2] bnx2x: fix error handling in bnx2x_loop_obtain_resources() Date: Thu, 10 Mar 2016 10:33:27 +0000 Message-ID: <20160310103326.GC14712@bricha3-MOBL3> References: <1451522271-16924-1-git-send-email-3chas3@gmail.com> <2552F74A0BCCBE4DBE2AD218C81B2811086B1525@avmb3.qlogic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , "Charles \(Chas\) Williams" To: Rasesh Mody Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6E2992946 for ; Thu, 10 Mar 2016 11:33:31 +0100 (CET) Content-Disposition: inline In-Reply-To: <2552F74A0BCCBE4DBE2AD218C81B2811086B1525@avmb3.qlogic.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Mar 04, 2016 at 10:28:44PM +0000, Rasesh Mody wrote: > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Chas Williams > > Sent: Wednesday, December 30, 2015 4:38 PM > > > > From: "Charles (Chas) Williams" > > > > bnx2x_loop_obtain_resources() returns a struct containing the status and > > the error message. If bnx2x_do_req4pf() fails, it shouldn't return both of > > these fields set to 0 indicating failure and no error. > > > > Further, bnx2x_do_req4pf() needs to be able fail and return NO_RESOURCES > > so that bnx2x_loop_obtain_resources() can negotiate reduced resource > > requirments. This requires additional checking around bnx2x_do_req4pf(). > > > > Signed-off-by: Chas Williams <3chas3@gmail.com> > > --- > > Acked-by: Rasesh Mody > > The change looks good. > > Thanks! > Rasesh > Applied to dpdk-next-net/rel_16_04, with added fixes line in message. /Bruce