<snip>
> >
> > +static int
> > +tap_rx_queue_start(struct rte_eth_dev *dev, uint16_t rx_queue_id)
> > +{
> > + dev->data->rx_queue_state[rx_queue_id] =
> RTE_ETH_QUEUE_STATE_STARTED;
>
> We need to verify the rx_queue_id is valid before setting the state.
>
> if (rx_queue_id < dev->data>nb_rx_queues)
> dev->data->rx_queue_state[rx_queue_id] =
> RTE_ETH_QUEUE_STATE_STARTED;
> else
> return -1;
>
> This needs to be done for each of these routines.
>
The ethdev layer function (rte_eth_dev_{rx, tx}_queue_{start, stop}) already
does the queue ID bounds check -- do you prefer to duplicate it here?
Thanks,
Gage