pci: initialize lists statically
authorDavid Marchand <david.marchand@6wind.com>
Tue, 20 Sep 2016 12:41:14 +0000 (18:11 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Oct 2016 14:32:49 +0000 (16:32 +0200)
commit3c1405b2f1116f6ad8e783fe53a310454c73f3e6
treebd21a430e507ddd3c1a89496bd81c82d6663e9e5
parent3071e0aaa89b57a66960d163f794213349d0a72e
pci: initialize lists statically

These lists can be initialized once and for all at build time.
With this, those lists are only manipulated in a common place
(and we could even make them private).

A nice side effect is that pci drivers can now register in constructors.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Reviewed-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_eal/bsdapp/eal/eal_pci.c
lib/librte_eal/common/eal_common_pci.c
lib/librte_eal/linuxapp/eal/eal_pci.c