Skip to content

Commit 67c6767

Browse files
authored
Merge pull request kubernetes#88721 from Deepthidharwar/sriov-tm-bug
FIX SRIOV detection logic not to error out if device not present on the system
2 parents 0836b58 + a4b59a5 commit 67c6767

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/e2e_node/topology_manager_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ func findNUMANodeWithoutSRIOVDevicesFromSysfs(numaNodes int) (int, bool) {
170170
}
171171

172172
if len(pciPerNuma) == 0 {
173-
// if we got this far we already passed a rough check that SRIOV devices
174-
// are available in the box, so something is seriously wrong
175-
framework.Failf("failed to find any VF devices from %v", pciDevs)
173+
framework.Logf("failed to find any VF device from %v", pciDevs)
174+
return -1, false
176175
}
177176

178177
for nodeNum := 0; nodeNum < numaNodes; nodeNum++ {

0 commit comments

Comments
 (0)