[dpdk-dev] [PATCH v3 3/4] net/virtio: allocate fake mbuf in Rx queue

Maxime Coquelin maxime.coquelin at redhat.com
Mon Mar 15 18:02:33 CET 2021



On 3/15/21 5:57 PM, David Marchand wrote:
> On Mon, Mar 15, 2021 at 5:46 PM Maxime Coquelin
> <maxime.coquelin at redhat.com> wrote:
>> @@ -612,6 +622,8 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t queue_idx)
>>
>>  clean_vq:
>>         hw->cvq = NULL;
>> +       rte_free(fake_mbuf);
>> +free_sw_ring:
>>         rte_free(sw_ring);
>>  free_hdr_mz:
>>         rte_memzone_free(hdr_mz);
>> @@ -641,6 +653,7 @@ virtio_free_queues(struct virtio_hw *hw)
>>
>>                 queue_type = virtio_get_queue_type(hw, i);
>>                 if (queue_type == VTNET_RQ) {
>> +                       free(vq->rxq.fake_mbuf);

Oups, will fix while applying.

Thanks,
Maxime

> 
> rte_free()
> 
> 



More information about the dev mailing list