numam-dpdk/drivers/net/cxgbe
Pablo de Lara 6b6861c171 ethdev: check queue state before starting or stopping
Following the same approach taken with dev_started field
in rte_eth_dev_data structure, this patch adds two new fields
in it, rx_queue_state and tx_queue_state arrays, which track
which queues have been started and which not.

This is important to avoid trying to start/stop twice a queue,
which will result in undefined behaviour
(which may cause RX/TX disruption).

Mind that only the PMDs which have queue_start/stop functions
have been changed to update this field, as the functions will
check the queue state before switching it.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-11-04 17:52:14 +01:00
..
base cxgbe: optimize forwarding performance for 40G 2015-10-20 18:49:18 +02:00
cxgbe_compat.h cxgbe: enable build on FreeBSD 2015-07-22 15:04:16 +02:00
cxgbe_ethdev.c ethdev: check queue state before starting or stopping 2015-11-04 17:52:14 +01:00
cxgbe_main.c cxgbe: enable jumbo frames 2015-10-20 18:49:18 +02:00
cxgbe.h cxgbe: enable jumbo frames 2015-10-20 18:49:18 +02:00
Makefile cxgbe: fix build with icc 2015-07-01 23:09:54 +02:00
rte_pmd_cxgbe_version.map cxgbe: add pmd skeleton 2015-06-30 22:46:42 +02:00
sge.c cxgbe: receive jumbo frames 2015-10-20 18:49:18 +02:00