diff options
author | Daniel Jurgens <danielj@mellanox.com> | 2016-06-30 17:34:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 06:12:03 -0400 |
commit | d57847dc4177c6fd8d950cb533f5edf0eab45b11 (patch) | |
tree | d6d9a413877cb51d19e2c5461dfb0bd67abc4f9e | |
parent | 5adff6a0886273eb426360400f120443833760a3 (diff) |
net/mlx5: Fix wait_vital for VFs and remove fixed sleep
The device ID for VFs is in a different location than PFs. This results
in the poll always timing out for VFs. There's no good way to read the
VF device ID without using the PF's configuration space. Switch to waiting
for the health poll to start incrementing. Also remove the 1s sleep
at the beginning.
fixes: 89d44f0a6c73 ('net/mlx5_core: Add pci error handlers to mlx5_core
driver')
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>