From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] librte_pmd_ixgbe: Add queue start failure check Date: Tue, 27 Jan 2015 15:12:18 +0100 Message-ID: <1558492.KSTKnLp9iV@xps13> References: <1421333111-22136-1-git-send-email-michael.qiu@intel.com> <1422360978-16954-1-git-send-email-michael.qiu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Michael Qiu Return-path: In-Reply-To: <1422360978-16954-1-git-send-email-michael.qiu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2015-01-27 20:16, Michael Qiu: > For ixgbe, when queue start failure, for example, mbuf allocate > failure, the device will still start success, which could be > an issue. > > Add return status check of queue start to avoid this issue. > > Signed-off-by: Michael Qiu > --- > v2 --> v1 > . remove duplicated error message in ixgbe_dev_rxtx_start() > . remove '\n' in PMD_INIT_LOG() So the braces are not needed anymore (reported by checkpatch): > + if (ret < 0) { > + return ret; > + } Acked-by: Thomas Monjalon Applied with removed braces Thanks -- Thomas