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

2018-10-28 Thread Thomas Monjalon
11/10/2018 15:01, Tiwei Bie: > On Thu, Oct 11, 2018 at 11:53:12AM +0100, Luca Boccassi wrote: > > On Thu, 2018-10-11 at 12:27 +0200, Thomas Monjalon wrote: > > > 28/08/2018 12:12, Luca Boccassi: > > > > From: Brian Russell > > > > > > > > In virtio_read_caps and vtpci_msix_detect, rte_pci_read_co

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

2018-10-11 Thread Tiwei Bie
On Thu, Oct 11, 2018 at 11:53:12AM +0100, Luca Boccassi wrote: > On Thu, 2018-10-11 at 12:27 +0200, Thomas Monjalon wrote: > > 28/08/2018 12:12, Luca Boccassi: > > > From: Brian Russell > > > > > > In virtio_read_caps and vtpci_msix_detect, rte_pci_read_config > > > returns > > > the number of by

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

2018-10-11 Thread Luca Boccassi
On Thu, 2018-10-11 at 12:27 +0200, Thomas Monjalon wrote: > 28/08/2018 12:12, 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 numbe

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

2018-10-11 Thread Thomas Monjalon
28/08/2018 12:12, 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

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

2018-08-28 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