Skip to content

Commit 95f6e83

Browse files
committed
fix: Wait until NIC device is initialized and udev rules are applied
Signed-off-by: Ivan Kolodiazhnyi <[email protected]>
1 parent 37bd070 commit 95f6e83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,9 @@ function restore_sriov_config() {
846846

847847
exec_cmd "echo ${pf_numvfs} >> ${pf_pci_dev_path}/sriov_numvfs"
848848

849+
# Sleep to wait until NIC device is initialized and udev rules are applied
850+
sleep ${BIND_DELAY_SEC}
851+
849852
for vf_record in $(seq 0 1 $((vf_record_idx-1))); do
850853
declare -a mlx_vf_info=(${mlx_vfs_arr[$vf_record]})
851854

0 commit comments

Comments
 (0)