diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index ca8ad4f10..78544fb12 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -36,7 +36,6 @@ const ( ClusterTypeOpenshift = "openshift" ClusterTypeKubernetes = "kubernetes" VendorMellanox = "15b3" - DeviceBF2 = "a2d6" ) var InitialState sriovnetworkv1.SriovNetworkNodeState @@ -173,17 +172,12 @@ func SyncNodeState(newState *sriovnetworkv1.SriovNetworkNodeState) error { return nil } -// skip config VF for switchdev mode or BF-2 NICs +// SkipConfigVf for switchdev mode or BF-2 NICs func SkipConfigVf(ifSpec sriovnetworkv1.Interface, ifStatus sriovnetworkv1.InterfaceExt) bool { if ifSpec.EswitchMode == sriovnetworkv1.ESWITCHMODE_SWITCHDEV { glog.V(2).Infof("SkipConfigVf(): skip config VF for switchdev device") return true } - // Nvidia_mlx5_MT42822_BlueField-2_integrated_ConnectX-6_Dx - if ifStatus.Vendor == VendorMellanox && ifStatus.DeviceID == DeviceBF2 { - glog.V(2).Infof("SkipConfigVf(): skip config VF for BF2 device") - return true - } return false }