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]>
- Re: [PATCH 0/7] net/ice: fix memory leaks Bruce Richardson
- [PATCH 1/7] net/ice: fix DDP package double free on init ... Anurag Mandal
- Re: [PATCH 1/7] net/ice: fix DDP package double free... Bruce Richardson
- Re: [PATCH 1/7] net/ice: fix DDP package double ... Bruce Richardson
- [PATCH 4/7] net/ice: fix main VSI leak on init failure Anurag Mandal
- Re: [PATCH 4/7] net/ice: fix main VSI leak on init f... Bruce Richardson
- [PATCH v2 0/7] net/ice: fix memory leaks Anurag Mandal
- [PATCH v2 4/7] net/ice: fix main VSI leak on init fa... Anurag Mandal
- [PATCH v2 6/7] net/ice: fix FDIR resource leak on se... Anurag Mandal
- [PATCH v2 2/7] net/ice: fix resource leaks on port c... Anurag Mandal
- Re: [PATCH v2 2/7] net/ice: fix resource leaks o... Bruce Richardson
- [PATCH v2 7/7] net/ice: fix ACL profile segment leak Anurag Mandal
- Re: [PATCH v2 7/7] net/ice: fix ACL profile segm... Bruce Richardson
- [PATCH v2 5/7] net/ice: fix MAC and VLAN filter leak... Anurag Mandal
- [PATCH v2 1/7] net/ice: fix DDP package double free ... Anurag Mandal
- Re: [PATCH v2 0/7] net/ice: fix memory leaks Bruce Richardson

