bnx2x: Fix support for VFs on some PFs
Due to incorrect usage of PF macros when reading information relating to interrupts, some PFs were erroneously unable to support VFs. Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
4c86866434
Коммит
9ea75ded3f
|
@ -1819,7 +1819,7 @@ bnx2x_get_vf_igu_cam_info(struct bnx2x *bp)
|
|||
fid = GET_FIELD((val), IGU_REG_MAPPING_MEMORY_FID);
|
||||
if (fid & IGU_FID_ENCODE_IS_PF)
|
||||
current_pf = fid & IGU_FID_PF_NUM_MASK;
|
||||
else if (current_pf == BP_ABS_FUNC(bp))
|
||||
else if (current_pf == BP_FUNC(bp))
|
||||
bnx2x_vf_set_igu_info(bp, sb_id,
|
||||
(fid & IGU_FID_VF_NUM_MASK));
|
||||
DP(BNX2X_MSG_IOV, "%s[%d], igu_sb_id=%d, msix=%d\n",
|
||||
|
|
Загрузка…
Ссылка в новой задаче