vdev: allow external registration of virtual device drivers
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 11 Apr 2014 07:36:53 +0000 (09:36 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 11 Apr 2014 14:17:57 +0000 (16:17 +0200)
commit396b69e56a3462ff80537deccebcdecb2771d8ca
tree41ae1edf71ba8e65fc0597b57a7788a3bd2cd58f
parent4c39baf297d10c217e7d3e7370f26a1fede58308
vdev: allow external registration of virtual device drivers

The registration of an external vdev driver (a .so library) is done in a
function that has the ((constructor)) attribute. This function is called
when dlopen(driver.so) is invoked.

As a result, we need to do the dlopen() before calling
rte_eal_vdev_init() that calls the initialization functions of all
registered drivers.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/eal/eal.c