[PATCH] net/gve: fix mbuf allocation memory leak for DQ Rx

Ferruh Yigit ferruh.yigit at amd.com
Fri Oct 4 06:37:35 CEST 2024


On 10/2/2024 12:48 AM, Joshua Washington wrote:
> Currently, gve_rxq_mbufs_alloc_dqo() allocates RING_SIZE buffers, but
> only posts RING_SIZE - 1 of them, inevitably leaking a buffer every
> time queues are stopped/started. This could eventually lead to running
> out of mbufs if an application stops/starts traffic enough.
> 
> Fixes: b044845bb015 ("net/gve: support queue start/stop")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Joshua Washington <joshwash at google.com>
> Reviewed-by: Rushil Gupta <rushilg at google.com>
> Reviewed-by: Praveen Kaligineedi <pkaligineedi at google.com>
>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list