CSIT-1325 - FIX: AVF tests failing on unbind 74/15074/4
authorPeter Mikus <pmikus@cisco.com>
Mon, 1 Oct 2018 13:21:59 +0000 (13:21 +0000)
committerPeter Mikus <pmikus@cisco.com>
Tue, 2 Oct 2018 07:48:52 +0000 (07:48 +0000)
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>
resources/libraries/python/InterfaceUtil.py
tests/vpp/perf/l2/10ge2p1x710-avf-eth-l2xcbase-mrr.robot
tests/vpp/perf/l2/10ge2p1x710-avf-eth-l2xcbase-ndrpdr.robot
tests/vpp/perf/l2/25ge2p1xxv710-avf-eth-l2xcbase-mrr.robot
tests/vpp/perf/l2/25ge2p1xxv710-avf-eth-l2xcbase-ndrpdr.robot

index 290db1d..7fc7f85 100644 (file)
@@ -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.
index d92dd72..779b7d0 100644 (file)
@@ -75,7 +75,7 @@
 | | ... | ${s_limit} | ${framesize}
 | | And Apply startup configuration on all VPP DUTs
 | | When Initialize AVF interfaces
-| | And Initialize L2 xconnect in circular topology
+| | And Initialize L2 Xconnect In 3-node Circular Topology
 | | Then Traffic should pass with maximum rate
 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
 
index 01a638d..3ebeaca 100644 (file)
@@ -81,7 +81,7 @@
 | | ... | ${s_limit} | ${framesize}
 | | And Apply startup configuration on all VPP DUTs
 | | When Initialize AVF interfaces
-| | And Initialize L2 xconnect in circular topology
+| | And Initialize L2 Xconnect In 3-node Circular Topology
 | | Then Find NDR and PDR intervals using optimized search
 | | ... | ${framesize} | ${traffic_profile} | ${min_rate} | ${max_rate}
 
index de0265a..33e1f26 100644 (file)
@@ -77,7 +77,7 @@
 | | ... | ${s_25G} | ${framesize} | pps_limit=${s_18.75Mpps}
 | | And Apply startup configuration on all VPP DUTs
 | | When Initialize AVF interfaces
-| | And Initialize L2 xconnect in circular topology
+| | And Initialize L2 Xconnect In 3-node Circular Topology
 | | Then Traffic should pass with maximum rate
 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
 
index 430e515..df89e84 100644 (file)
@@ -84,7 +84,7 @@
 | | ... | ${s_25G} | ${framesize} | pps_limit=${s_18.75Mpps}
 | | And Apply startup configuration on all VPP DUTs
 | | When Initialize AVF interfaces
-| | And Initialize L2 xconnect in circular topology
+| | And Initialize L2 Xconnect In 3-node Circular Topology
 | | Then Find NDR and PDR intervals using optimized search
 | | ... | ${framesize} | ${traffic_profile} | ${min_rate} | ${max_rate}