pci: align bsd implementation on linux
authorDavid Marchand <david.marchand@6wind.com>
Fri, 9 May 2014 13:15:54 +0000 (15:15 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 May 2014 11:20:29 +0000 (13:20 +0200)
commit8e5f9df258e5f149a31847fab08a334541f7331a
tree984218e3a6dcafb10cc67a8c01c7e945c3effc43
parent8990aac31de42f6eeef1a4b5594d63df802882de
pci: align bsd implementation on linux

bsd implementation lacks check on driver flags, fix this.
Besides, check on BAR0 is not needed and could cause trouble for devices that
have no BAR0.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_eal/bsdapp/eal/eal_pci.c