Skip to content

Commit

Permalink
Choose supported NIC models for conformance test
Browse files Browse the repository at this point in the history
  • Loading branch information
pliurh committed Oct 29, 2021
1 parent 14bd335 commit 6031213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/util/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (n *EnabledNodes) FindSriovDevices(node string) ([]*sriovv1.InterfaceExt, e
func (n *EnabledNodes) FindOneVfioSriovDevice() (string, sriovv1.InterfaceExt) {
for _, node := range n.Nodes {
for _, nic := range n.States[node].Status.Interfaces {
if nic.Vendor == intelVendorID {
if nic.Vendor == intelVendorID && sriovv1.IsSupportedModel(nic.Vendor, nic.DeviceID) {
return node, nic
}
}
Expand All @@ -158,7 +158,7 @@ func (n *EnabledNodes) FindOneMellanoxSriovDevice(node string) (*sriovv1.Interfa
}

for _, itf := range s.Status.Interfaces {
if itf.Vendor == mlxVendorID {
if itf.Vendor == mlxVendorID && sriovv1.IsSupportedModel(itf.Vendor, itf.DeviceID){
return &itf, nil
}
}
Expand Down

0 comments on commit 6031213

Please sign in to comment.