[PATCH v2 2/7] net/ice: fix resource leaks on port close
Bruce Richardson
bruce.richardson at intel.com
Wed Nov 4 17:44:17 CET 2026
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: stable at dpdk.org
>
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---
> drivers/net/intel/ice/ice_ethdev.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the stable
mailing list