From e0e600c4c81311f49e407146f89b1e044a539325 Mon Sep 17 00:00:00 2001 From: Ivan Kolodiazhnyi Date: Tue, 9 May 2023 09:08:16 +0300 Subject: [PATCH] Add NVIDIA BlueField 3 to supported NICs --- deploy/configmap.yaml | 1 + deployment/sriov-network-operator/templates/configmap.yaml | 1 + pkg/utils/utils.go | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy/configmap.yaml b/deploy/configmap.yaml index 4353cee85e..e16983a5f9 100644 --- a/deploy/configmap.yaml +++ b/deploy/configmap.yaml @@ -23,6 +23,7 @@ data: Nvidia_mlx5_ConnectX-6_Lx: "15b3 101f 101e" Nvidia_mlx5_ConnectX-7: "15b3 1021 101e" Nvidia_mlx5_MT42822_BlueField-2_integrated_ConnectX-6_Dx: "15b3 a2d6 101e" + Nvidia_mlx5_MT43244_BlueField-3_integrated_ConnectX-7_Dx: "15b3 a2dc 101e" Broadcom_bnxt_BCM57414_2x25G: "14e4 16d7 16dc" Broadcom_bnxt_BCM75508_2x100G: "14e4 1750 1806" Qlogic_qede_QL45000_50G: "1077 1654 1664" diff --git a/deployment/sriov-network-operator/templates/configmap.yaml b/deployment/sriov-network-operator/templates/configmap.yaml index 4353cee85e..e16983a5f9 100644 --- a/deployment/sriov-network-operator/templates/configmap.yaml +++ b/deployment/sriov-network-operator/templates/configmap.yaml @@ -23,6 +23,7 @@ data: Nvidia_mlx5_ConnectX-6_Lx: "15b3 101f 101e" Nvidia_mlx5_ConnectX-7: "15b3 1021 101e" Nvidia_mlx5_MT42822_BlueField-2_integrated_ConnectX-6_Dx: "15b3 a2d6 101e" + Nvidia_mlx5_MT43244_BlueField-3_integrated_ConnectX-7_Dx: "15b3 a2dc 101e" Broadcom_bnxt_BCM57414_2x25G: "14e4 16d7 16dc" Broadcom_bnxt_BCM75508_2x100G: "14e4 1750 1806" Qlogic_qede_QL45000_50G: "1077 1654 1664" diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 30601847c5..37888e4b19 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -39,6 +39,7 @@ const ( ClusterTypeKubernetes = "kubernetes" VendorMellanox = "15b3" DeviceBF2 = "a2d6" + DeviceBF3 = "a2dc" ) var InitialState sriovnetworkv1.SriovNetworkNodeState @@ -196,8 +197,8 @@ func skipConfigVf(ifSpec sriovnetworkv1.Interface, ifStatus sriovnetworkv1.Inter return true, nil } - // Nvidia_mlx5_MT42822_BlueField-2_integrated_ConnectX-6_Dx in OpenShift - if ClusterType == ClusterTypeOpenshift && ifStatus.Vendor == VendorMellanox && ifStatus.DeviceID == DeviceBF2 { + // NVIDIA BlueField 2 and BlueField3 in OpenShift + if ClusterType == ClusterTypeOpenshift && ifStatus.Vendor == VendorMellanox && (ifStatus.DeviceID == DeviceBF2 || ifStatus.DeviceID == DeviceBF3) { // TODO: remove this when switch to the systemd configuration support. mode, err := mellanoxBlueFieldMode(ifStatus.PciAddress) if err != nil {