e1c3e30508
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: |
||
---|---|---|
.. | ||
Makefile | ||
mlx5_defs.h | ||
mlx5_ethdev.c | ||
mlx5_fdir.c | ||
mlx5_flow.c | ||
mlx5_mac.c | ||
mlx5_mr.c | ||
mlx5_prm.h | ||
mlx5_rss.c | ||
mlx5_rxmode.c | ||
mlx5_rxq.c | ||
mlx5_rxtx_vec_sse.c | ||
mlx5_rxtx.c | ||
mlx5_rxtx.h | ||
mlx5_stats.c | ||
mlx5_trigger.c | ||
mlx5_txq.c | ||
mlx5_utils.h | ||
mlx5_vlan.c | ||
mlx5.c | ||
mlx5.h | ||
rte_pmd_mlx5_version.map |