numam-dpdk/drivers/net/virtio
Brian Russell 49bb1f7a0a net/virtio: fix PCI config error handling
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: 6ba1f63b5a ("virtio: support specification 1.0")
Cc: stable@dpdk.org

Signed-off-by: Brian Russell <brussell@brocade.com>
Signed-off-by: Luca Boccassi <bluca@debian.org>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
2018-10-29 00:54:20 +01:00
..
virtio_user malloc: enable event callbacks for external memory 2018-10-11 11:56:55 +02:00
Makefile mk: add experimental tag check 2018-01-29 23:35:29 +01:00
meson.build net/virtio: add to meson build 2018-03-12 16:29:27 +01:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c ethdev: free all common data when releasing port 2018-10-26 22:14:05 +02:00
virtio_ethdev.h net/virtio: add missing supported features 2018-09-28 01:41:03 +02:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c net/virtio: fix PCI config error handling 2018-10-29 00:54:20 +01:00
virtio_pci.h net/virtio: improve offload check performance 2018-07-04 17:03:48 +02:00
virtio_ring.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
virtio_rxtx_simple_neon.c ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
virtio_rxtx_simple_sse.c ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
virtio_rxtx_simple.c eal: add macro for attribute weak 2018-10-25 02:11:23 +02:00
virtio_rxtx_simple.h net/virtio: remove simple Tx path 2018-07-04 17:03:48 +02:00
virtio_rxtx.c net/virtio: remove unnecessary Rx error assignments 2018-08-02 04:41:51 +02:00
virtio_rxtx.h net/virtio: fix resuming port with Rx vector path 2018-02-13 18:57:59 +01:00
virtio_user_ethdev.c ethdev: remove deprecated attach/detach functions 2018-10-26 22:14:05 +02:00
virtqueue.c net/virtio: free in-order descriptors before device start 2018-07-03 01:35:58 +02:00
virtqueue.h net/virtio: free in-order descriptors before device start 2018-07-03 01:35:58 +02:00