From: Olivier Matz Date: Mon, 22 Jan 2018 12:33:37 +0000 (+0100) Subject: net/mlx5: fix return value of start operation X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=80554894c4618f6f3bd202565bc881215d99dde6 net/mlx5: fix return value of start operation On error, mlx5_dev_start() does not return a negative value as it is supposed to do. The consequence is that the application (ex: testpmd) does not notice that the port is not started and begins the rxtx on an uninitialized port, which crashes. Fixes: e1016cb73383 ("net/mlx5: fix Rx interrupts management") Cc: stable@dpdk.org Signed-off-by: Olivier Matz Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c index 61fa2604f9..827db2e7e8 100644 --- a/drivers/net/mlx5/mlx5_trigger.c +++ b/drivers/net/mlx5/mlx5_trigger.c @@ -181,7 +181,7 @@ error: priv_rxq_stop(priv); priv_flow_delete_drop_queue(priv); priv_unlock(priv); - return -err; + return err; } /**