aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-07-26 14:11:43 +0000
committerPeter Mikus <pmikus@cisco.com>2019-07-26 14:11:43 +0000
commita426e41f2aaa90695de01a2f50bc0f12f3dc32d4 (patch)
treed569be37f296560dee7b9e632983b302046198a7 /resources
parentdd6ca76e18898f97107b30b34a84bcae81aecfb3 (diff)
Change: AVF can run also on i40evf
Change-Id: I375b7c9f8fe81428cb16fea35128bddec089da1b Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/InterfaceUtil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py
index 279f9a0e25..4531ff3f01 100644
--- a/resources/libraries/python/InterfaceUtil.py
+++ b/resources/libraries/python/InterfaceUtil.py
@@ -1526,7 +1526,7 @@ class InterfaceUtil(object):
pf_mac_addr = Topology.get_interface_mac(node, ifc_key).split(":")
uio_driver = Topology.get_uio_driver(node)
kernel_driver = Topology.get_interface_driver(node, ifc_key)
- if kernel_driver != "i40e":
+ if kernel_driver != "i40e" or kernel_driver != "i40evf":
raise RuntimeError(
"AVF needs i40e driver, not {driver} at node {host} ifc {ifc}"\
.format(driver=kernel_driver, host=node["host"], ifc=ifc_key))
@@ -1543,7 +1543,7 @@ class InterfaceUtil(object):
# Bind to kernel driver.
DUTSetup.pci_driver_bind(node, pf_pci_addr, kernel_driver)
- # Initialize PCI VFs
+ # Initialize PCI VFs.
DUTSetup.set_sriov_numvfs(node, pf_pci_addr, numvfs)
vf_ifc_keys = []