From: Martin Klozik Date: Tue, 21 Nov 2017 08:48:13 +0000 (+0000) Subject: sriov: Determine path to the bind-tool X-Git-Tag: opnfv-6.0.0~43^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=a838853cd80b2287f62ba1bad60d3f977312a35f;p=vswitchperf.git 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 Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Sridhar Rao Reviewed-by: Trevor Cooper --- 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