]> 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)
commitfd0395d4cf79a4bffb91a94fe069750115c80ebb
treed6d9a413877cb51d19e2c5461dfb0bd67abc4f9e
parent514c662c4e9503d07081749eb4144695dc3d989c
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: 88d54a05851b ('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