Skip to content

Commit f0a2814

Browse files
e0nemaze88
authored andcommitted
fix: Do not change multiport on VFs reset
Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
1 parent 5df34b9 commit f0a2814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/plugins/mellanox/mellanox_plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (p *MellanoxPlugin) OnNodeStateChange(new *sriovnetworkv1.SriovNetworkNodeS
196196
}
197197

198198
if fwNext.TotalVfs > 0 || fwNext.EnableSriov {
199-
attributesToChange[pciAddress] = mlx.MlxNic{TotalVfs: 0}
199+
attributesToChange[pciAddress] = mlx.MlxNic{TotalVfs: 0, Multiport: -1}
200200
log.Log.V(2).Info("Changing TotalVfs to 0, doesn't require rebooting", "fwNext.totalVfs", fwNext.TotalVfs)
201201
}
202202
}

0 commit comments

Comments
 (0)