X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=vsperf;h=5589ac39e96951a6629f9b2e2b5cabdd50dfc92e;hb=6583defcc0c5610f296c33446d5521d9030fc2b8;hp=68a961ec371708c718bca242738025f31759b710;hpb=66a2773d89c689d1b8740aa2388164582e9ccb6c;p=vswitchperf.git diff --git a/vsperf b/vsperf index 68a961ec..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 @@ -564,8 +567,8 @@ def main(): settings.setValue('mode', args['mode']) - # set dpdk and ovs paths according to VNF and VSWITCH - if settings.getValue('mode') != 'trafficgen': + # update paths to trafficgens if required + if settings.getValue('mode') == 'trafficgen': functions.settings_update_paths() # if required, handle list-* operations