File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
providers/base/units/intel-qat Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,12 @@ _description: Check that VFIO-PCI support is enabled for the device
102
102
each VF will have it own character file in /dev/vfio/
103
103
command:
104
104
rmmod vfio-pci || true
105
- nb_vfio=$(qatctl.py status --devices {{ pf }} --vfio | wc -l)
106
- [ "$nb_vfio" -le 0 ] || (echo "nb vfio devices should be <= 0" && exit 1)
105
+ nb_vfio_before=$(qatctl.py status --devices {{ pf }} --vfio | wc -l)
107
106
# we have to pass the VF device ids
108
107
modprobe vfio-pci ids=8086:4941,8086:4943,8086:4945,8086:4947
109
- nb_vfio=$(qatctl.py status --devices {{ pf }} --vfio | wc -l)
110
- [ "$nb_vfio" -gt 0 ] || (echo "nb vfio devices should be > 0" && exit 1)
108
+ nb_vfio_after=$(qatctl.py status --devices {{ pf }} --vfio | wc -l)
109
+ [ "$nb_vfio_before" -le 0 ] || (echo "nb vfio devices should be <= 0" && exit 1)
110
+ [ "$nb_vfio_after" -gt 0 ] || (echo "nb vfio devices should be > 0" && exit 1)
111
111
112
112
unit: template
113
113
template-resource: qat_pf
You can’t perform that action at this time.
0 commit comments