numam-dpdk/drivers
Jianfeng Tan cb482cb3a3 net/virtio: fix MAC address read
When virtio-net devices are bound to uio_pci_generic, we get
the wrong mac addr by virtio PMD. The wrong mac addr is a
addr that is 4-byte left shift of the correct addr.

It's a regression bug introduced by the cleanup patch below.
The condition of if we set use_msix should be if msix is
actually enabled. Only to check if there is a capability list
is not enough. For example, binding a transitional device
to uio_pci_device would trigger the wrong assignment of use_msix.

To correct that, we also check the flags of msix capability to
make sure it's enabled.

Fixes: ee1843bd89 ("net/virtio: remove redundant MSI-X detection")
Cc: stable@dpdk.org

Reported-by: Vipin Varghese <vipin.varghese@intel.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
2017-07-31 18:45:59 +02:00
..
bus bus/fslmc: remove workaround for smmu mapping 2017-07-19 08:26:08 +03:00
crypto crypto/armv8: fix HMAC supported key sizes 2017-07-30 18:51:25 +02:00
event event/dpaa2: advertise burst mode capability 2017-07-20 07:19:35 +03:00
mempool mempool/dpaa2: fix freeing bp list 2017-07-21 09:28:22 +03:00
net net/virtio: fix MAC address read 2017-07-31 18:45:59 +02:00
Makefile drivers: add bus dependency for eventdev 2017-07-07 09:24:29 +02:00