Skip to content

dlb: make init script end with exit 0 when sriov_numvfs not found #1428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo/dlb-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ enable_and_configure_vfs() {

sriov_numvfs_path="$devpath/sriov_numvfs"
if ! test -w "$sriov_numvfs_path"; then
echo "error: $sriov_numvfs_path is not found or not writable. Check if dlb driver module is loaded"
exit 1
echo "$sriov_numvfs_path is not found or not writable. In case there is no configured VF yet, check if dlb driver module is loaded"
exit 0
fi
if [ "$(cat "$sriov_numvfs_path")" -ne 0 ]; then
echo "$devpath already configured"
Expand Down