Re: [dpdk-dev] [PATCH v4 2/2] virtio: fix PCI config err handling

2018-08-27 Thread Tiwei Bie
On Mon, Aug 27, 2018 at 05:52:56PM +0100, Luca Boccassi wrote: > On Mon, 2018-08-27 at 13:29 +0800, Tiwei Bie wrote: > > On Fri, Aug 24, 2018 at 06:14:20PM +0100, Luca Boccassi wrote: > > > From: Brian Russell > > > > > > In virtio_read_caps and vtpci_msix_detect, rte_pci_read_config > > > return

Re: [dpdk-dev] [PATCH v4 2/2] virtio: fix PCI config err handling

2018-08-27 Thread Luca Boccassi
On Mon, 2018-08-27 at 13:29 +0800, Tiwei Bie wrote: > On Fri, Aug 24, 2018 at 06:14:20PM +0100, Luca Boccassi wrote: > > From: Brian Russell > > > > In virtio_read_caps and vtpci_msix_detect, rte_pci_read_config > > returns > > the number of bytes read from PCI config or < 0 on error. > > If less

Re: [dpdk-dev] [PATCH v4 2/2] virtio: fix PCI config err handling

2018-08-26 Thread Tiwei Bie
On Fri, Aug 24, 2018 at 06:14:20PM +0100, Luca Boccassi wrote: > From: Brian Russell > > In virtio_read_caps and vtpci_msix_detect, rte_pci_read_config returns > the number of bytes read from PCI config or < 0 on error. > If less than the expected number of bytes are read then log the > failure a

[dpdk-dev] [PATCH v4 2/2] virtio: fix PCI config err handling

2018-08-24 Thread Luca Boccassi
From: Brian Russell In virtio_read_caps and vtpci_msix_detect, rte_pci_read_config returns the number of bytes read from PCI config or < 0 on error. If less than the expected number of bytes are read then log the failure and return rather than carrying on with garbage. Fixes: 6ba1f63b5ab0 ("virt