fm10k/base: check VF has a queue
authorWang Xiao W <xiao.w.wang@intel.com>
Thu, 10 Sep 2015 04:38:31 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 7 Oct 2015 11:25:07 +0000 (13:25 +0200)
commit8b8264bdb90deacbf6469638272a30d987d18679
tree5a349bd69f34ec455f72d41b453697554f83cc02
parent6eca66189018d2ab5b6196a5f934729f16ddeac0
fm10k/base: check VF has a 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: Wang Xiao W <xiao.w.wang@intel.com>
drivers/net/fm10k/base/fm10k_vf.c