From 9db603df1076b5ee56ef6326fd0e396b166ed5b1 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Mon, 1 Oct 2018 13:21:59 +0000 Subject: 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 --- resources/libraries/python/InterfaceUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/libraries/python/InterfaceUtil.py') 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. -- cgit 1.2.3-korg