summaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2025-06-19 01:24:41 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2025-07-11 00:36:58 +0300
commit4ef21c83ea4bb33aa12f2e927bbaabbd1bdd2ae9 (patch)
tree554b4ac12dfa8dc20439282a0c39fcab941fee2e /lib/crypto/mpi/mpiutil.c
parent066c2715ada8f839fa4c272fcf87ee11d36f20d4 (diff)
downloadlinux-4ef21c83ea4bb33aa12f2e927bbaabbd1bdd2ae9.tar.xz
ice: use pci_iov_vf_id() to get VF ID
The ice_sriov_set_msix_vec_count() obtains the VF device ID in a strange way by iterating over the possible VF IDs and calling pci_iov_virtfn_devfn to calculate the device and function combos and compare them to the pdev->devfn. This is unnecessary. The pci_iov_vf_id() helper already exists which does the reverse calculation of pci_iov_virtfn_devfn(), which is much simpler and avoids the loop construction. Use this instead. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions