On Mon, Nov 02, 2026 at 08:10:32AM +0000, Anurag Mandal wrote:
> ice_dev_close() tears down the hardware state rather than with
> ice_deinit_hw(), and misses part of it.
> The switch filter management structures, the DDP package copy
> and any remaining VSI contexts are never freed, and the flow
> director counter block, allocated by ice_init_hw(), is never
> given back to the firmware.
> As ice_dev_reset() is a close followed by an init, the memory
> also leaks on every port reset.
> 
> Call ice_deinit_hw() instead.
> 
> Fixes: f9cf4f864150 ("net/ice: support device initialization")
> Fixes: 9c4f15901ada ("net/ice: free memory with matching allocator")
> Cc: [email protected]
> 
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
>  drivers/net/intel/ice/ice_ethdev.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
Acked-by: Bruce Richardson <[email protected]>

Reply via email to