[dpdk-dev] [PATCH v2] ethdev: add new RX/TX queue state arrays in rte_eth_dev_data

Stephen Hemminger stephen at networkplumber.org
Tue Sep 22 00:40:24 CEST 2015


On Wed, 16 Sep 2015 22:51:24 +0100
Pablo de Lara <pablo.de.lara.guarch at intel.com> wrote:

> 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>

I agree that the DPDK API should check for buggy manipulation
in the control path. But this should be done in generic code.
Anything where you have to change any driver is making more work
than necessary.


More information about the dev mailing list