From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH v2] eventdev: fix unchecked return in default Rx adapter conf cb Date: Wed, 7 Feb 2018 00:31:14 +0530 Message-ID: <20180206190113.GA5868@jerin> References: <1517352989-11720-1-git-send-email-vipin.varghese@intel.com> <1517768311-827-1-git-send-email-nikhil.rao@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, vipin.varghese@intel.com, deepak.k.jain@intel.com To: Nikhil Rao Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0065.outbound.protection.outlook.com [104.47.34.65]) by dpdk.org (Postfix) with ESMTP id 5B2331B638 for ; Tue, 6 Feb 2018 20:01:32 +0100 (CET) Content-Disposition: inline In-Reply-To: <1517768311-827-1-git-send-email-nikhil.rao@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Sun, 4 Feb 2018 23:48:31 +0530 > From: Nikhil Rao > To: dev@dpdk.org > CC: nikhil.rao@intel.com, vipin.varghese@intel.com, > deepak.k.jain@intel.com, jerin.jacob@caviumnetworks.com > Subject: [PATCH v2] eventdev: fix unchecked return in default Rx adapter > conf cb > X-Mailer: git-send-email 2.7.4 > > The default adapter configuration callback is invoked when a Rx > queue is added to the adapter and the adapter detects that a SW > service is needed. The adapter needs to re-configure the device > with an additional port and to do do, it needs to stop the > device and restart it after it is done reconfiguring it. This > patch adds code to check the return code of > rte_event_dev_start() for both when the reconfiguration fails > and when it succeeds and introduces a new error code (-EIO) > for the first case. > > Fixes: 9c38b704d280 ("eventdev: add eth Rx adapter implementation") > Coverity issue: 257000 > > Signed-off-by: Nikhil Rao Cc: stable@dpdk.org Acked-by: Jerin Jacob