Skip to content

Commit 9376cbe

Browse files
Geetha sowjanyaaloktiwa
authored andcommitted
octeontx2-af: Fix mbox INTR handler when num VFs > 64
[ Upstream commit 0fdba88a211508984eb5df62008c29688692b134 ] When number of RVU VFs > 64, the vfs value passed to "rvu_queue_work" function is incorrect. Due to which mbox workqueue entries for VFs 0 to 63 never gets added to workqueue. Fixes: 9bdc47a ("octeontx2-af: Mbox communication support btw AF and it's VFs") Signed-off-by: Geetha sowjanya <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit da3b90f71b1e313cc4ec93c3805facf4a95e6bcb) Signed-off-by: Alok Tiwari <[email protected]>
1 parent 0672607 commit 9376cbe

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rvu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,7 @@ static irqreturn_t rvu_mbox_intr_handler(int irq, void *rvu_irq)
27182718
rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INTX(1), intr);
27192719

27202720
rvu_queue_work(&rvu->afvf_wq_info, 64, vfs, intr);
2721-
vfs -= 64;
2721+
vfs = 64;
27222722
}
27232723

27242724
intr = rvupf_read64(rvu, RVU_PF_VFPF_MBOX_INTX(0));

0 commit comments

Comments
 (0)