]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: do not assume VF always has 1 queue
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 25 Aug 2015 00:27:24 +0000 (17:27 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 23 Nov 2015 19:08:47 +0000 (11:08 -0800)
commit1d608396ced38a0bf44a673ec990a74f160b93de
tree71d8e89c364d57e289b0b819e22b2f5464ba2b17
parent6420ff90c689654a757860d17c4c01b71659b8ae
fm10k: do not assume VF always has 1 queue

It is possible that the PF has not yet assigned resources to the VF.
Although rare, this could result in the VF attempting to read queues it
does not own and result in FUM or THI faults in the PF. To prevent this,
check queue 0 before we continue in init_hw_vf.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_type.h
drivers/net/ethernet/intel/fm10k/fm10k_vf.c