numam-dpdk/drivers/net
Yuanhan Liu 7687312571 net/virtio: fix crash when number of virtio devices > 1
The vtpci_ops assignment needs the 'hw->port_id' as an input parameter.
That said, we should set 'hw->port_id' firstly, then do the vtpci_ops
assignment, while the code does reversely. That would result to a crash
when more than one virtio devices are used, because we keep assigning
proper vtpci_ops to virtio_hw_internal[0]->vtpci_ops, leaving the pointer
for other ports being NULL.

Reverse the order fixes this issue.

Fixes: 9470427c88 ("net/virtio: do not store PCI device pointer at shared memory")
Cc: stable@dpdk.org

Reported-by: Lei Yao <lei.a.yao@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2017-01-28 14:25:40 +01:00
..
af_packet net/af_packet: support 802.1Q VLAN 2017-01-17 19:41:43 +01:00
bnx2x net/bnx2x: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
bnxt net/bnxt: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
bonding
cxgbe net/cxgbe: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
e1000 net/e1000: use I/O device memory read/write API 2017-01-18 17:18:26 +01:00
ena net/ena: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
enic net/enic: use I/O device memory read/write API 2017-01-18 17:18:26 +01:00
fm10k net/fm10k: use I/O device memory read/write API 2017-01-18 17:18:26 +01:00
i40e net/i40e: use I/O device memory read/write API 2017-01-18 17:18:26 +01:00
ixgbe net/ixgbe: use I/O device memory read/write API 2017-01-18 17:18:26 +01:00
mlx4 net/mlx: fix IPv4 and IPv6 packet type 2017-01-17 19:41:43 +01:00
mlx5 net/mlx5: support extended statistics 2017-01-17 20:13:13 +01:00
mpipe
nfp net/nfp: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
null
pcap net/pcap: fix timestamps in output pcap file 2017-01-17 19:40:51 +01:00
qede net/qede: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
ring
sfc net/sfc: advertise kmod dependencies in pmdinfo 2017-01-17 19:40:51 +01:00
szedata2
tap net/tap: fix build with old kernels 2017-01-20 18:37:22 +01:00
thunderx net/thunderx: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
vhost
virtio net/virtio: fix crash when number of virtio devices > 1 2017-01-28 14:25:40 +01:00
vmxnet3 net/vmxnet3: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
xenvirt
Makefile net/tap: add TUN/TAP device PMD 2017-01-17 19:40:50 +01:00