[PATCH v7 1/4] net/iavf: fix MAC addresses leak on reset
Burakov, Anatoly
anatoly.burakov at intel.com
Wed Sep 23 13:47:25 CEST 2026
On 9/14/2026 10:17 AM, David Marchand wrote:
> When resetting, calling iavf_dev_uninit + iavf_dev_init results in
> leaking the previous dev->data->mac_addrs array.
> As a consequence, secondary MAC addresses are lost during a VF reset.
>
> Move the MAC addresses array in the private iavf_info structure, along
> the multicast MAC addresses.
> Set/clear dev->data->mac_addrs in iavf_dev_init/iavf_dev_uninit.
>
> Consistently use RTE_DIM() to avoid mixing with the multicast addresses
> array.
>
> Fixes: e74e1bb6280d ("net/iavf: enable port reset")
> Cc: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
--
Thanks,
Anatoly
More information about the stable
mailing list