From: Andrew Rybchenko Subject: Re: [PATCH v4 1/3] ethdev: fix invalid device configuration after failure Date: Tue, 13 Nov 2018 14:19:08 +0300 Message-ID: References: <1541642954-37497-1-git-send-email-wenzhuo.lu@intel.com> <20181113111238.80107-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: , Wenzhuo Lu , To: Ferruh Yigit , Thomas Monjalon Return-path: In-Reply-To: <20181113111238.80107-1-ferruh.yigit@intel.com> Content-Language: en-GB List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11/13/18 2:12 PM, Ferruh Yigit wrote: > From: Wenzhuo Lu > > The new configuration is stored during the rte_eth_dev_configure() API > but the API may fail. After failure stored configuration will be > invalid since it is not fully applied to the device. > > We better roll the configuration back after failure. > > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > > Signed-off-by: Wenzhuo Lu > Signed-off-by: Ferruh Yigit Reviewed-by: Andrew Rybchenko