diff options
| author | Jacob Keller <[email protected]> | 2025-06-18 22:24:41 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-07-10 21:36:58 +0000 |
| commit | 4ef21c83ea4bb33aa12f2e927bbaabbd1bdd2ae9 (patch) | |
| tree | 554b4ac12dfa8dc20439282a0c39fcab941fee2e /tools/net/ynl/pyynl/cli.py | |
| parent | ice: expose VF functions used by live migration (diff) | |
| download | kernel-4ef21c83ea4bb33aa12f2e927bbaabbd1bdd2ae9.tar.gz kernel-4ef21c83ea4bb33aa12f2e927bbaabbd1bdd2ae9.zip | |
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 <[email protected]>
Reviewed-by: Przemek Kitszel <[email protected]>
Tested-by: Rafal Romanowski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions
