]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Defer VF initialization till PF is fully initialized
authorAmir Vadai <amirv@mellanox.com>
Mon, 14 Apr 2014 08:17:22 +0000 (11:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2014 17:24:42 +0000 (13:24 -0400)
commita3b76956d03b6de71cbe2be6c3c3abda21d8bf96
treeeb7e2d071aa67347acd0b5891c241c9ec9213aeb
parent5ef7966672659dae1057b8406f6559f3415d4a1d
net/mlx4_core: Defer VF initialization till PF is fully initialized

Fix in commit [1] is not sufficient since a deferred VF initialization
could happen after pci_enable_sriov() is finished, but before the PF is
fully initialized.
Need to prevent VFs from initializing till the PF is fully ready and
comm channel is operational.

[1] - a53dad7 "net/mlx4_core: mlx4_init_slave() shouldn't access comm
      channel before PF is ready"

CC: Stuart Hayes <Stuart_Hayes@Dell.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c