Skip to content

Commit 82ecaf0

Browse files
dlb: make init script end with exit 0 when sriov_numvfs not found
Even if sriov_numvfs is not found, do not finish with an error. It is necessary because VM still recognizes VF's BDF as xx.xx.0, and script tries to find sriov_numvfs. So, chnage the script just print some informational message and end with exit 0. Signed-off-by: Hyeongju Johannes Lee <[email protected]>
1 parent e49e89e commit 82ecaf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/dlb-init.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ enable_and_configure_vfs() {
55

66
sriov_numvfs_path="$devpath/sriov_numvfs"
77
if ! test -w "$sriov_numvfs_path"; then
8-
echo "error: $sriov_numvfs_path is not found or not writable. Check if dlb driver module is loaded"
9-
exit 1
8+
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"
9+
exit 0
1010
fi
1111
if [ "$(cat "$sriov_numvfs_path")" -ne 0 ]; then
1212
echo "$devpath already configured"

0 commit comments

Comments
 (0)