net/mlx5_core: Fix internal error detection conditions
authorEli Cohen <eli@mellanox.com>
Wed, 14 Oct 2015 14:43:45 +0000 (17:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2015 02:14:41 +0000 (19:14 -0700)
commitfd76ee4da55abb21babfc69310d321b9cb9a32e0
tree0d1a83cb929b9ca2863b29272cd97e89fa556d92
parentf985c65c908f6b26c30019a83dc5ea295f5fcf62
net/mlx5_core: Fix internal error detection conditions

The detection of a fatal condition has been updated to take into account
the state reported by the device or by detecting an all ones read of the
firmware version which indicates that the device is not accessible.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/health.c
include/linux/mlx5/driver.h