net/i40e/base: skip further adminq init for VF
authorXiaolong Ye <xiaolong.ye@intel.com>
Wed, 22 Jan 2020 03:58:10 +0000 (11:58 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:19 +0000 (09:51 +0100)
commit707911f98227c39321ef5ad8cfdea44f71283f46
tree1bc5949804ff14b0f672d0ee026afa28607a88c3
parent1f0bc0592ae59d5d809ade9044d886c7c6f6186d
net/i40e/base: skip further adminq init for VF

Since VF has no need of firmware, we can skip further adminq init which
involves firmware operation, this patch fixes the testpmd segfault issue
when starting with i40e VF.

Fixes: d5e1a149362e ("net/i40e/base: check MAC type")

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_adminq.c