]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:03:20 +0000 (22:03 -0800)
commit1db05ac3de56e529d6fe80b88cdf8124896dcc97
tree9ce6a27b0223eb6c68049a052569b25b24cbee21
parentb37283731a7e8e4c8df70ccee6e2a5e94a571ed9
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>
Orabug: 25394529
(cherry picked from commit 1340181fe435ccb8ca2f996b8680bd9566860619)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_type.h
drivers/net/ethernet/intel/fm10k/fm10k_vf.c