diff options
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/QATUtil.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/resources/libraries/python/QATUtil.py b/resources/libraries/python/QATUtil.py index 2afea8e29f..e16221fb30 100644 --- a/resources/libraries/python/QATUtil.py +++ b/resources/libraries/python/QATUtil.py @@ -76,15 +76,17 @@ class QATUtil: # Initialize QAT VFs. if int(device["numvfs"]) > 0: + path = f"drivers/{device['driver']}" DUTSetup.set_sriov_numvfs( - node, device["pci_address"], path="drivers/4xxx", + node, device["pci_address"], path=path, numvfs=device["numvfs"] ) - for cvf in range(int(device["numvfs"])): - DUTSetup.pci_vf_driver_unbind( - node, device["pci_address"], cvf - ) - DUTSetup.pci_vf_driver_bind( - node, device["pci_address"], cvf, "vfio-pci" - ) + if device["driver"] not in ["c4xxx"]: + for cvf in range(int(device["numvfs"])): + DUTSetup.pci_vf_driver_unbind( + node, device["pci_address"], cvf + ) + DUTSetup.pci_vf_driver_bind( + node, device["pci_address"], cvf, "vfio-pci" + ) |