]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix wait_vital for VFs and remove fixed sleep
authorDaniel Jurgens <danielj@mellanox.com>
Thu, 30 Jun 2016 14:34:41 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 10:12:03 +0000 (06:12 -0400)
commit98e26e8dab5bc104f4279674336f845d103656d6
treed6d9a413877cb51d19e2c5461dfb0bd67abc4f9e
parent7898b91ef806d6b908e41bec9e7d889fae84a0b4
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: c493bfa6edc2 ('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>
drivers/net/ethernet/mellanox/mlx5/core/main.c