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

2024-10-03 Thread Ferruh Yigit
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 sto

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

2024-10-01 Thread Joshua Washington
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