numam-dpdk/lib
Konstantin Ananyev c6c79fa425 e1000: do not release queue on alloc error
If igb_alloc_rx_queue_mbufs() would fail to allocate an mbuf for RX queue,
it calls igb_rx_queue_release(rxq).
That causes rxq to be silently freed, without updating
dev->data->rx_queues[].
So any further reference to it will trigger the SIGSEGV.
Same thing in em PMD too.

To fix: igb_alloc_rx_queue_mbufs() should just return an error to the
caller and let upper layer to deal with the probem.
That's what ixgbe PMD is doing right now.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-06-11 00:29:36 +02:00
..
librte_cmdline remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_eal remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_ether remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_hash remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_ivshmem remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_kni remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_kvargs devargs: use a comma instead of semicolon to separate key/values 2014-04-10 15:50:11 +02:00
librte_lpm remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_malloc remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_mbuf remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_mempool remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_meter remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_net remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pmd_e1000 e1000: do not release queue on alloc error 2014-06-11 00:29:36 +02:00
librte_pmd_ixgbe remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pmd_pcap remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pmd_ring remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pmd_virtio remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pmd_vmxnet3 remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pmd_xenvirt remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_power remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_ring remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_sched remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_timer remove trailing whitespaces 2014-06-11 00:29:34 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00