[dpdk-dev] [PATCH v7 2/2] ethdev: change queue release callback
Ferruh Yigit
ferruh.yigit at intel.com
Mon Oct 11 15:11:59 CEST 2021
On 10/11/2021 9:28 AM, Thomas Monjalon wrote:
> 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;
Thanks for catching, fixed in next-net too.
More information about the dev
mailing list