Re: [dpdk-dev] [PATCH v4] net/virtio: fix repeated memory free of vq

2021-09-14 Thread Maxime Coquelin
On 8/31/21 4:39 PM, Gaoxiang Liu wrote: > When virtio_init_queue returns error, the memory of vq is freed. > But the value of hw->vqs[queue_idx] does not restore. > If virtio_init_queue returns error, the memory of vq is freed again > in virtio_free_queues. > > Fixes: 69c80d4ef89b ("net/virtio:

Re: [dpdk-dev] [PATCH v4] net/virtio: fix repeated memory free of vq

2021-09-06 Thread Xia, Chenbo
> -Original Message- > From: Gaoxiang Liu > Sent: Tuesday, August 31, 2021 10:40 PM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; liugaoxi...@huawei.com; Gaoxiang Liu ; > sta...@dpdk.org > Subject: [PATCH v4] net/virtio: fix repeated memory free of vq > > When virtio_

Re: [dpdk-dev] [PATCH v4] net/virtio: fix repeated memory free of vq

2021-09-06 Thread Gaoxiang Liu
Hi, chenbo, maxime. Please help to review the patch. The patch has been proposed a month ago. At 2021-08-31 22:39:51, "Gaoxiang Liu" wrote: >When virtio_init_queue returns error, the memory of vq is freed. >But the value of hw->vqs[queue_idx] does not restore. >If virtio_init_queue returns error

[dpdk-dev] [PATCH v4] net/virtio: fix repeated memory free of vq

2021-08-31 Thread Gaoxiang Liu
When virtio_init_queue returns error, the memory of vq is freed. But the value of hw->vqs[queue_idx] does not restore. If virtio_init_queue returns error, the memory of vq is freed again in virtio_free_queues. Fixes: 69c80d4ef89b ("net/virtio: allocate queue at init stage") Cc: sta...@dpdk.org Si