i40e: Remove a FW workaround for Number of MSIX vectors
The Number of MSIX vectors being reported is correct and hence we need a check to do the right thing for FWs before and after. Change-ID: I50902d1c848adcb960ea49ac73f7865ca871a1c3 Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
3e26186d4c
commit
ac71b7ba18
|
@ -5093,6 +5093,12 @@ static int i40e_get_capabilities(struct i40e_pf *pf)
|
|||
/* increment MSI-X count because current FW skips one */
|
||||
pf->hw.func_caps.num_msix_vectors++;
|
||||
|
||||
if (((pf->hw.aq.fw_maj_ver == 2) && (pf->hw.aq.fw_min_ver < 22)) ||
|
||||
(pf->hw.aq.fw_maj_ver < 2)) {
|
||||
pf->hw.func_caps.num_msix_vectors++;
|
||||
pf->hw.func_caps.num_msix_vectors_vf++;
|
||||
}
|
||||
|
||||
if (pf->hw.debug_mask & I40E_DEBUG_USER)
|
||||
dev_info(&pf->pdev->dev,
|
||||
"pf=%d, num_vfs=%d, msix_pf=%d, msix_vf=%d, fd_g=%d, fd_b=%d, pf_max_q=%d num_vsi=%d\n",
|
||||
|
|
Loading…
Reference in New Issue