intel-device-plugins-for-ku.../cmd/qat_plugin/dpdkdrv
Mikko Ylinen c7e18d8b25 qat: rework driver binding
The new_id based driver binding is failing on kernels 5.11+ when the
QAT VF is not bound to any driver: attempts to write to new_id with
the same device ID repeatedly error with "file exists".

Move the new_id initialization to the beginning of the startup and
write the enabled device IDs only once.

This commit also fixes an issue where VF devices where not correctly detected
in virtual machines where the VF was not bound any driver.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-12-21 08:20:02 +02:00
..
dpdkdrv_test.go qat: rework driver binding 2021-12-21 08:20:02 +02:00
dpdkdrv.go qat: rework driver binding 2021-12-21 08:20:02 +02:00