aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-10-01 13:21:59 +0000
committerPeter Mikus <pmikus@cisco.com>2018-10-02 07:48:52 +0000
commit9db603df1076b5ee56ef6326fd0e396b166ed5b1 (patch)
tree48d24ee7b03921ddcbbb145b621a555e1c3365ea /resources/libraries
parent424749b09ac91c4eb5eabdd8bdd9d34b8c130783 (diff)
CSIT-1325 - FIX: AVF tests failing on unbind
Currently there is and issue when consecutive AVF suites are trying to initialize AVF and bind VF to vfio-pci driver, there seems to be race condition if VPP has already VFs allocated. This patch should introduce safer contstrain to disable VPP prior AVF init. Change-Id: Id8839200f19d9e7a18d161b660cfb1e43a8ca379 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/python/InterfaceUtil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py
index 290db1db67..7fc7f85723 100644
--- a/resources/libraries/python/InterfaceUtil.py
+++ b/resources/libraries/python/InterfaceUtil.py
@@ -1338,11 +1338,11 @@ class InterfaceUtil(object):
current_driver = DUTSetup.get_pci_dev_driver(node,\
pf_pci_addr.replace(':', r'\:'))
+ VPPUtil.stop_vpp_service(node)
if current_driver != kernel_driver:
# PCI device must be re-bound to kernel driver before creating VFs.
DUTSetup.verify_kernel_module(node, kernel_driver, force_load=True)
# Stop VPP to prevent deadlock.
- VPPUtil.stop_vpp_service(node)
# Unbind from current driver.
DUTSetup.pci_driver_unbind(node, pf_pci_addr)
# Bind to kernel driver.