mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #88721 from Deepthidharwar/sriov-tm-bug
FIX SRIOV detection logic not to error out if device not present on the system
This commit is contained in:
commit
67c6767b7d
@ -170,9 +170,8 @@ func findNUMANodeWithoutSRIOVDevicesFromSysfs(numaNodes int) (int, bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(pciPerNuma) == 0 {
|
if len(pciPerNuma) == 0 {
|
||||||
// if we got this far we already passed a rough check that SRIOV devices
|
framework.Logf("failed to find any VF device from %v", pciDevs)
|
||||||
// are available in the box, so something is seriously wrong
|
return -1, false
|
||||||
framework.Failf("failed to find any VF devices from %v", pciDevs)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for nodeNum := 0; nodeNum < numaNodes; nodeNum++ {
|
for nodeNum := 0; nodeNum < numaNodes; nodeNum++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user