numam-dpdk/drivers/net
Bernard Iremonger c680a4a88c virtio: fix crash in statistics functions
This initialisation of nb_rx_queues and nb_tx_queues has been removed
from eth_virtio_dev_init.

The nb_rx_queues and nb_tx_queues were being initialised in
eth_virtio_dev_init before the tx_queues and rx_queues arrays were
allocated.

The arrays are allocated when the ethdev port is configured and the
nb_tx_queues and nb_rx_queues are initialised.

If any of the following functions were called before the ethdev
port was configured there was a segmentation fault because
rx_queues and tx_queues were NULL:

rte_eth_stats_get
rte_eth_stats_reset
rte_eth_xstats_get
rte_eth_xstats_reset

Fixes: 823ad64795 ("virtio: support multiple queues")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-03-16 18:52:18 +01:00
..
af_packet af_packet: set input port in mbuf 2015-12-10 22:07:06 +01:00
bnx2x bnx2x: determine queue sizes sooner 2016-03-16 16:51:12 +01:00
bonding remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
cxgbe cxgbe: fix PCI info copy to ports under same PF 2016-03-16 16:55:01 +01:00
e1000 igb: set default thresholds based on MAC type 2016-03-16 16:58:26 +01:00
enic enic: fix last packet not being sent 2016-03-16 16:57:39 +01:00
fm10k fm10k: enable FTAG based forwarding 2016-03-16 18:51:44 +01:00
i40e i40e: support default MAC address setting 2016-03-16 17:48:51 +01:00
ixgbe ixgbe: disallow unsupported Rx mode 2016-03-16 17:18:11 +01:00
mlx4 mlx: use aligned memory to register regions 2016-03-16 18:52:17 +01:00
mlx5 mlx5: fix Rx checksum offload in non L3/L4 packets 2016-03-16 18:52:18 +01:00
mpipe mpipe: fix crash when testpmd is quit under load 2016-03-16 16:48:06 +01:00
nfp nfp: fix Tx queue reset 2016-03-16 18:52:18 +01:00
null null: remove fake pci interface 2015-11-03 18:46:52 +01:00
pcap mk: fix shared library dependencies of drivers 2015-12-06 22:15:14 +01:00
ring ring: fix memory leak when detaching 2015-11-23 23:51:14 +01:00
szedata2 szedata2: support promiscuous and allmulticast modes 2016-03-16 18:52:18 +01:00
virtio virtio: fix crash in statistics functions 2016-03-16 18:52:18 +01:00
vmxnet3 mbuf: get DMA address 2016-03-04 16:01:15 +01:00
xenvirt mbuf: get DMA address 2016-03-04 16:01:15 +01:00
Makefile mk: replace the combined library with a linker script 2016-03-01 14:37:27 +01:00