numam-dpdk/drivers
Zhiyong Yang 6c7001480a bus/pci: fix interrupt handler type
For virtio legacy device, testpmd startup fails when using uio_pci_generic.

The issue is caused by invoking the function pci_ioport_map. The correct
value of intr_handle.type is already set before calling it, we should avoid
overwriting the default value "RTE_INTR_HANDLE_UNKNOWN" in this function.
Besides, the removal has no harm to other cases because it is set to 0 by a
memset on the whole struct during allocation in the function pci_scan_one.

Such assignments are removed in the meanwhile in pci_uio_map_resource(),
pci_vfio_map_resource_primary() and pci_vfio_map_resource_secondary() in
order to keep consistencies and avoid future questions.

Fixes: 756ce64b1e ("eal: introduce PCI ioport API")
Cc: stable@dpdk.org

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
2018-01-12 01:04:22 +01:00
..
bus bus/pci: fix interrupt handler type 2018-01-12 01:04:22 +01:00
crypto fix typos 2018-01-11 18:26:46 +01:00
event drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
mempool drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
net fix typos 2018-01-11 18:26:46 +01:00
Makefile drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00