[dpdk-dev] [PATCH v7 2/2] ethdev: change queue release callback
Thomas Monjalon
thomas at monjalon.net
Mon Oct 11 10:28:02 CEST 2021
06/10/2021 13:18, Xueming Li:
> --- a/drivers/net/szedata2/rte_eth_szedata2.c
> +++ b/drivers/net/szedata2/rte_eth_szedata2.c
> static void
> -eth_tx_queue_release(void *q)
> +eth_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid)
> {
> - struct szedata2_tx_queue *txq = (struct szedata2_tx_queue *)q;
> + struct szedata2_tx_queue *txq = dev->data->tx_queues[qid];
>
> if (txq != NULL) {
> if (txq->sze != NULL)
> szedata_close(txq->sze);
> rte_free(txq);
> + dev->data->tx_queues[i] = NULL;
> }
> }
Compilation is broken. I will do following change in the patch on main:
- dev->data->tx_queues[i] = NULL;
+ dev->data->tx_queues[qid] = NULL;
More information about the dev
mailing list