Merge "sriov: Determine path to the bind-tool"
[vswitchperf.git] / tools / networkcard.py
index c31be69..2cd296f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2016 Intel Corporation.
+# Copyright 2016-2017 Intel Corporation.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -249,7 +249,7 @@ def reinit_vfs(pf_pci_handle):
 
     :param pf_pci_handle: PCI slot identifier of PF with domain part.
     """
-    rte_pci_tool = os.path.join(settings.getValue('RTE_SDK'), 'tools', 'dpdk_nic_bind.py')
+    rte_pci_tool = settings.getValue('TOOLS')['bind-tool']
 
     for vf_nic in get_sriov_vfs_list(pf_pci_handle):
         nic_driver = get_driver(vf_nic)
@@ -263,4 +263,3 @@ def reinit_vfs(pf_pci_handle):
                 _LOGGER.warning('Error during reinitialization of VF %s', vf_nic)
         else:
             _LOGGER.warning("Can't detect driver for VF %s", vf_nic)
-