numam-dpdk/drivers/bus/pci/bsd
Luca Boccassi e8d435f1f3 bus/pci: harmonize return value of config read
On Linux, rte_pci_read_config on success returns the number of read
bytes, but on BSD it returns 0.
Document the return values, and have BSD behave as Linux does.

At least one case (bnx2x PMD) treats 0 as an error, so the change
makes sense also for that.

Signed-off-by: Luca Boccassi <bluca@debian.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2018-10-29 00:32:14 +01:00
..
Makefile use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
pci.c bus/pci: harmonize return value of config read 2018-10-29 00:32:14 +01:00