numam-dpdk/drivers/net/mlx5
Matan Azrad e1c3e30508 net/mlx5: fix probe failure report
The corrupted code doesn't return error when probe function
fails due to error in device mac address getting.
By this way, the probe function may return success even if the
ETH dev is not allocated.

Hence, the probe caller, for example failsafe PMD, fails when it
tries to get ETH dev after the device was plugged out while mlx5
was probing it.

The fix adds error report to the probe caller when priv_get_mac fails
and in all other failure options which are missing it.

By this way, it prevents the unexpected behavior to miss ETH device
after the device was probed successfully.

This bug was already present in the original code taken from mlx4.

Fixes: 771fa900b7 ("mlx5: introduce new driver for Mellanox ConnectX-4 adapters")
Fixes: 1371f4df16 ("mlx5: check port is configured as ethernet device")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
2017-10-06 02:49:47 +02:00
..
Makefile net/mlx5: remove multiple drop RSS queues 2017-10-06 02:49:47 +02:00
mlx5_defs.h net/mlx5: add vectorized Rx/Tx burst for x86 2017-07-07 11:56:03 +02:00
mlx5_ethdev.c net/mlx5: improve stack usage during link update 2017-10-06 02:49:47 +02:00
mlx5_fdir.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_flow.c net/mlx5: remove multiple drop RSS queues 2017-10-06 02:49:47 +02:00
mlx5_mac.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_mr.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_prm.h net/mlx5: remove old MLNX OFED 3.3 verification 2017-10-06 02:49:47 +02:00
mlx5_rss.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_rxmode.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_rxq.c net/mlx5: fix non working secondary process by removing it 2017-10-06 02:49:47 +02:00
mlx5_rxtx_vec_sse.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_rxtx.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_rxtx.h net/mlx5: replace memory barrier type 2017-10-06 02:49:47 +02:00
mlx5_stats.c net/mlx5: fix locking in xstats functions 2017-10-06 02:49:47 +02:00
mlx5_trigger.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5_txq.c net/mlx5: fix non working secondary process by removing it 2017-10-06 02:49:47 +02:00
mlx5_utils.h remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
mlx5_vlan.c net/mlx5: remove pedantic pragma 2017-10-06 02:49:47 +02:00
mlx5.c net/mlx5: fix probe failure report 2017-10-06 02:49:47 +02:00
mlx5.h net/mlx5: remove old MLNX OFED 3.3 verification 2017-10-06 02:49:47 +02:00
rte_pmd_mlx5_version.map mlx5: introduce new driver for Mellanox ConnectX-4 adapters 2015-10-30 22:03:42 +01:00