aboutsummaryrefslogtreecommitdiffstats
path: root/vsperf
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-11-21 08:48:13 +0000
committerMartin Klozik <martinx.klozik@intel.com>2017-11-21 08:48:13 +0000
commita838853cd80b2287f62ba1bad60d3f977312a35f (patch)
tree0a8d8b26fe0dc0e16159f79495d831c5a37792d6 /vsperf
parent4bca2eeb7fabe20112d0b9c5a4c166615124bcd0 (diff)
sriov: Determine path to the bind-tool
In case of SRIOV path to the bind-tool must be known before NIC driver is re-initialized. It means before TestCase.__init__() is called. Change-Id: Ib6fdba233e665144510dd492462c0a21aa19ed71 Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com> Reviewed-by: Sridhar Rao <sridhar.rao@spirent.com> Reviewed-by: Trevor Cooper <trevor.cooper@intel.com>
Diffstat (limited to 'vsperf')
-rwxr-xr-xvsperf3
1 files changed, 3 insertions, 0 deletions
diff --git a/vsperf b/vsperf
index 6f248f89..5589ac39 100755
--- a/vsperf
+++ b/vsperf
@@ -387,6 +387,9 @@ def enable_sriov(nic_list):
else:
_LOGGER.debug("SRIOV enabled for NIC %s", nic)
+ # ensure that path to the bind tool is valid
+ functions.settings_update_paths()
+
# WORKAROUND: it has been observed with IXGBE(VF) driver,
# that NIC doesn't correclty dispatch traffic to VFs based
# on their MAC address. Unbind and bind to the same driver