Skip to content

Commit

Permalink
skip mlx firmware config if the PF is on externallyCreated
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Sch <[email protected]>
  • Loading branch information
SchSeba committed May 8, 2023
1 parent d797fd3 commit 64639ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/plugins/mellanox/mellanox_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 64639ba

Please sign in to comment.