We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca9eb9 commit 61e4939Copy full SHA for 61e4939
demo/qat-init.sh
@@ -66,6 +66,24 @@ enable_sriov() {
66
done
67
}
68
69
+
70
+enable_auto_reset() {
71
+ for dev in $DEVS; do
72
+ DEVPATH="/sys/bus/pci/devices/0000:$dev"
73
+ AUTORESET="$DEVPATH/qat/auto_reset"
74
+ if ! test -w "$AUTORESET"; then
75
+ echo "error: $NUMVFS is not found or not writable. Check if QAT driver module is loaded"
76
+ exit 1
77
+ fi
78
+ if [ "$(cat "$AUTORESET")" == "on" ]; then
79
+ echo "$DEVPATH's auto reset is already on"
80
+ else
81
+ echo "on" > "$AUTORESET" && echo "$DEVPATH's auto reset has been enabled"
82
83
+ done
84
+}
85
86
check_config
87
sysfs_config
88
enable_sriov
89
+enable_auto_reset
0 commit comments