Thread (12 messages) 12 messages, 3 authors, 2020-09-14

Re: [dpdk-dev] [PATCH v2] net/tap: free mempool when closing

From: Ferruh Yigit <hidden>
Date: 2020-09-14 14:44:03

On 8/8/2020 10:58 AM, wangyunjian wrote:
From: Yunjian Wang <redacted>

When setup tx queues, we will create a mempool for the 'gso_ctx'.
The mempool is not freed when closing tap device. If free the tap
device and create it with different name, it will create a new
mempool. This maybe cause an OOM.

The snprintf function return value is not checked and the mempool
name may be truncated. This patch also fix it.

Fixes: 050316a88313 ("net/tap: support TSO (TCP Segment Offload)")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <redacted>
Reviewed-by: Ferruh Yigit <redacted>

Applied to dpdk-next-net/main, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help