From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] net/failsafe: fix blank line parsing Date: Thu, 03 Aug 2017 22:34:59 +0200 Message-ID: <2340494.aB5PmPcCMt@xps> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Gaetan Rivet Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 5FEC62C16 for ; Thu, 3 Aug 2017 22:35:02 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 03/08/2017 17:08, Gaetan Rivet: > When the output of an exec() slave definition is only a single newline > character, the fail-safe currently fails to parse the device with the > value returned by the rte_devargs library. > > This behavior is incorrect, because the fail-safe should make a > difference between the absence of a device, and an erroneous device > declaration. > > Fix the output sanitization in the case where no newline was at its end > and detect the special case of an absent device. The correct error code > is then returned. > > Fixes: a0194d828100 ("net/failsafe: add flexible device definition") > > Signed-off-by: Gaetan Rivet Applied, thanks