octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64
authorGeetha sowjanya <gakula@marvell.com>
Sat, 25 Nov 2023 16:34:02 +0000 (22:04 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Nov 2023 10:57:53 +0000 (11:57 +0100)
commit51597219e0cd5157401d4d0ccb5daa4d9961676f
treee20ea8e9387d6e408ae903cda7f86ac4f5f5d3b7
parente54d628a2721bfbb002c19f6e8ca6746cec7640f
octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64

When more than 64 VFs are enabled for a PF then mbox communication
between VF and PF is not working as mbox work queueing for few VFs
are skipped due to wrong calculation of VF numbers.

Fixes: d424b6c02415 ("octeontx2-pf: Enable SRIOV and added VF mbox handling")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://lore.kernel.org/r/1700930042-5400-1-git-send-email-sbhatta@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c