From e2a04a4d16e1247f3a1afb8b010fcd562c1372b7 Mon Sep 17 00:00:00 2001 From: Sebastian Sch Date: Mon, 3 Jul 2023 15:09:13 +0300 Subject: [PATCH] skip mlx firmware config if the PF is on externallyCreated Signed-off-by: Sebastian Sch --- pkg/plugins/mellanox/mellanox_plugin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/plugins/mellanox/mellanox_plugin.go b/pkg/plugins/mellanox/mellanox_plugin.go index f6b8ab185..ddf168ad7 100644 --- a/pkg/plugins/mellanox/mellanox_plugin.go +++ b/pkg/plugins/mellanox/mellanox_plugin.go @@ -107,6 +107,11 @@ func (p *MellanoxPlugin) OnNodeStateChange(new *sriovnetworkv1.SriovNetworkNodeS } for _, ifaceSpec := range mellanoxNicsSpec { + // skip configuration for the MLX firmware if externallyCreated is true + if ifaceSpec.ExternallyCreated { + continue + } + pciPrefix := getPciAddressPrefix(ifaceSpec.PciAddress) // skip processed nics, help not running the same logic 2 times for dual port NICs if _, ok := processedNics[pciPrefix]; ok {