pci: fix device registration on FreeBSD
authorBen Walker <benjamin.walker@intel.com>
Tue, 21 Mar 2017 18:32:15 +0000 (11:32 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Mar 2017 10:07:53 +0000 (12:07 +0200)
commit24a535796824049fab8570d0b29e658470375876
treeb9a871341459cd2cb1a12bd3ec2d517512f7544d
parent34818d6cfd14da9b856ed4f45224766e5841aa9f
pci: fix device registration on FreeBSD

The FreeBSD implementation wasn't registering new devices
with the device framework on start up. However, common
code attempts to unregister them on shutdown which causes
a SEGFAULT. This fix makes the FreeBSD code do the same
thing as the Linux code for registration.

Fixes: 13a1317d3ba7 ("pci: create device list and fallback on its members")
Cc: stable@dpdk.org
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_eal/bsdapp/eal/eal_pci.c