numam-dpdk/drivers/net/mlx4
Matan Azrad 8d0f80167d net/mlx4: 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 mlx4
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.

Fixes: 7fae69eeff ("mlx4: new poll mode driver")
Fixes: 001a520e41 ("net/mlx4: add port parameter")
Fixes: 7b06615392 ("mlx4: check if port is configured for ethernet")
Fixes: fec3608673 ("mlx4: query netdevice to get initial MAC address")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2017-07-31 19:58:41 +02:00
..
Makefile net/mlx: update C compliance standard 2017-07-06 15:00:57 +02:00
mlx4_flow.c net/mlx4: fix flow creation before start 2017-07-31 19:58:41 +02:00
mlx4_flow.h net/mlx4: support flow API RSS action 2017-07-06 15:00:57 +02:00
mlx4.c net/mlx4: fix probe failure report 2017-07-31 19:58:41 +02:00
mlx4.h net/mlx4: support flow API RSS action 2017-07-06 15:00:57 +02:00
rte_pmd_mlx4_version.map mlx4: move to drivers/net/ 2015-05-22 16:06:22 +02:00