numam-dpdk/lib/librte_ether
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
..
Makefile ethdev: remove Rx interrupt switch 2015-09-03 19:22:48 +02:00
rte_dev_info.h ethdev: add access to specific device info 2015-07-16 23:56:13 +02:00
rte_eth_ctrl.h ethdev: extend flow director to support VF 2015-11-04 13:39:25 +01:00
rte_ethdev.c ethdev: check queue state before starting or stopping 2015-11-04 17:52:14 +01:00
rte_ethdev.h ethdev: check queue state before starting or stopping 2015-11-04 17:52:14 +01:00
rte_ether_version.map ethdev: add device fields from PCI layer 2015-11-03 18:39:23 +01:00
rte_ether.h eal: add and use unaligned integer types 2015-06-24 12:00:41 +02:00