[dpdk-dev] [PATCH v6 1/2] bus/pci: harmonize and document rte_pci_read_config return value

Bruce Richardson bruce.richardson at intel.com
Wed Oct 17 12:57:38 CEST 2018


On Wed, Oct 17, 2018 at 10:58:58AM +0100, Luca Boccassi wrote:
> On Tue, 2018-08-28 at 11:12 +0100, Luca Boccassi wrote:
> > 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 at debian.org>
> > ---

Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list