File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ check_config() {
3030sysfs_config () {
3131 if [ " $SERVICES_ENABLED_FOUND " = " TRUE" ]; then
3232 for dev in $DEVS ; do
33- DEVPATH=" /sys/bus/pci/devices/0000: $dev "
33+ DEVPATH=$( realpath /sys/bus/pci/devices/???? : " $dev " )
3434 PCI_DEV=$( cat " $DEVPATH " /device 2> /dev/null)
3535 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
3636 continue
@@ -52,7 +52,7 @@ sysfs_config() {
5252
5353enable_sriov () {
5454 for dev in $DEVS ; do
55- DEVPATH=" /sys/bus/pci/devices/0000: $dev "
55+ DEVPATH=$( realpath /sys/bus/pci/devices/???? : " $dev " )
5656 NUMVFS=" $DEVPATH /sriov_numvfs"
5757 if ! test -w " $NUMVFS " ; then
5858 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