usertools: check if module is loaded before binding
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 25 Jul 2019 14:21:09 +0000 (15:21 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jul 2019 22:22:33 +0000 (00:22 +0200)
commit681a6728865582795f0fee8cbb496fda3d19194a
treea34aadd5ae927fd60f890cbe44874fe9a1189027
parent15f6aac759f2c23009831ae4a34b1171d5cf6863
usertools: check if module is loaded before binding

Currently, if an attempt is made to bind a device to a driver that
is not loaded, a confusing and misleading error message appears.
Fix it so that, before binding to the driver, we actually check if
it is loaded in the kernel first.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
usertools/dpdk-devbind.py