nic_uio: probe and attach devices after unload
authorRaz Amir <razamir22@gmail.com>
Thu, 5 Mar 2015 16:24:23 +0000 (18:24 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Jul 2015 22:48:27 +0000 (00:48 +0200)
commit40adab038db3584a2bb8b4a19c2d750f2b4f22ac
tree6f9f1c357d6ffa81d6bb7e019074b33c5aa9507c
parent390cb6b89c6d9b95b7d74620c99b94d93e5357ed
nic_uio: probe and attach devices after unload

Added code that saves the pointers to the detached devices, during
driver loading, and during driver unloading, go over the list,
and re-attach them by calling device_probe_and_attach
on each device.

Signed-off-by: Raz Amir <razamir22@gmail.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/nic_uio/nic_uio.c