From a426e41f2aaa90695de01a2f50bc0f12f3dc32d4 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Fri, 26 Jul 2019 14:11:43 +0000 Subject: Change: AVF can run also on i40evf Change-Id: I375b7c9f8fe81428cb16fea35128bddec089da1b Signed-off-by: Peter Mikus --- resources/libraries/python/InterfaceUtil.py | 4 ++-- 1 file 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 = [] -- cgit 1.2.3-korg