File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ check_config() {
30
30
sysfs_config () {
31
31
if [ " $SERVICES_ENABLED_FOUND " = " TRUE" ]; then
32
32
for dev in $DEVS ; do
33
- DEVPATH=" /sys/bus/pci/devices/0000: $dev "
33
+ DEVPATH=$( realpath /sys/bus/pci/devices/???? : " $dev " )
34
34
PCI_DEV=$( cat " $DEVPATH " /device 2> /dev/null)
35
35
if [ " $PCI_DEV " != " $QAT_4XXX_DEVICE_PCI_ID " ] && [ " $PCI_DEV " != " $QAT_401XX_DEVICE_PCI_ID " ] && [ " $PCI_DEV " != " $QAT_402XX_DEVICE_PCI_ID " ] && [ " $PCI_DEV " != " $QAT_420XX_DEVICE_PCI_ID " ]; then
36
36
continue
@@ -52,7 +52,7 @@ sysfs_config() {
52
52
53
53
enable_sriov () {
54
54
for dev in $DEVS ; do
55
- DEVPATH=" /sys/bus/pci/devices/0000: $dev "
55
+ DEVPATH=$( realpath /sys/bus/pci/devices/???? : " $dev " )
56
56
NUMVFS=" $DEVPATH /sriov_numvfs"
57
57
if ! test -w " $NUMVFS " ; then
58
58
echo " error: $NUMVFS is not found or not writable. Check if QAT driver module is loaded"
You can’t perform that action at this time.
0 commit comments