On Sun, Nov 29, 2026 at 01:53:09PM +0000, Anurag Mandal wrote:
> Since the MAC address arrays are freed by
> rte_eth_dev_release_port(), the driver uninit
> functions no longer free them.
> A device reset runs uninit and init without
> releasing the port, and init allocates new arrays
> over the old ones.
> Each PF reset leaks the MAC and hash MAC address
> arrays, and each VF reset leaks the MAC address
> array.
>
> Free the previous array just before allocating
> its replacement in init.
> Freeing it in the reset callbacks instead would
> leave it NULL when init fails earlier, e.g. when
> a VF reset returns -EAGAIN while the PF is resetting,
> and ixgbevf_dev_close() would then walk a NULL array.
>
> Fixes: e16adf08e54d ("ethdev: free all common data when releasing port")
> Cc: [email protected]
>
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
> drivers/net/intel/ixgbe/ixgbe_ethdev.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
Acked-by: Bruce Richardson <[email protected]>