Re: [dpdk-dev] [PATCH] examples/vhost: fix memory leak on forwarding packets.

2021-08-26 Thread Xia, Chenbo
> -Original Message- > From: Ma, WenwuX > Sent: Wednesday, August 18, 2021 1:13 AM > To: dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo ; Jiang, > Cheng1 ; Hu, Jiayu ; Ma, WenwuX > ; sta...@dpdk.org > Subject: [PATCH] examples/vhost: fix memory leak on forwarding packets. Shou

Re: [dpdk-dev] [PATCH] examples/vhost: fix memory leak on forwarding packets.

2021-08-17 Thread Hu, Jiayu
Reviewed-by: Jiayu Hu > -Original Message- > From: Jiang, Cheng1 > Sent: Tuesday, August 17, 2021 1:26 PM > To: Ma, WenwuX ; dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo ; Hu, > Jiayu ; sta...@dpdk.org > Subject: RE: [PATCH] examples/vhost: fix memory leak on forwarding pac

Re: [dpdk-dev] [PATCH] examples/vhost: fix memory leak on forwarding packets.

2021-08-16 Thread Jiang, Cheng1
Acked-by: Cheng Jiang > -Original Message- > From: Ma, WenwuX > Sent: Wednesday, August 18, 2021 1:13 AM > To: dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo ; > Jiang, Cheng1 ; Hu, Jiayu ; > Ma, WenwuX ; sta...@dpdk.org > Subject: [PATCH] examples/vhost: fix memory leak o

[dpdk-dev] [PATCH] examples/vhost: fix memory leak on forwarding packets.

2021-08-16 Thread Wenwu Ma
In function virtio_tx_local(), when the device receiving the packet is the same as the device to which the packet is forwarded, or the device is removed, we return but not free the packet, it will cause a memory leak. Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application") Cc: s