> > 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 at intel.com> > > Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
Applied, thanks