aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/pyynl/lib/ynl.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2025-06-18 22:24:43 +0000
committerTony Nguyen <[email protected]>2025-07-10 21:37:39 +0000
commit2d925db5b2c6e0c70166de928f34cebf6844b8fd (patch)
treeb88111e27fde4163dbe84630465cca990d727d99 /tools/net/ynl/pyynl/lib/ynl.py
parentice: avoid rebuilding if MSI-X vector count is unchanged (diff)
downloadkernel-2d925db5b2c6e0c70166de928f34cebf6844b8fd.tar.gz
kernel-2d925db5b2c6e0c70166de928f34cebf6844b8fd.zip
ice: introduce ice_get_vf_by_dev() wrapper
The ice_get_vf_by_id() function is used to obtain a reference to a VF structure based on its ID. The ice_sriov_set_msix_vec_count() function needs to get a VF reference starting from the VF PCI device, and uses pci_iov_vf_id() to get the VF ID. This pattern is currently uncommon in the ice driver. However, the live migration module will introduce many more such locations. Add a helper wrapper ice_get_vf_by_dev() which takes the VF PCI device and calls ice_get_vf_by_id() using pci_iov_vf_id() to get the VF ID. 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/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions