]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeon_ep: fix VF MAC address lifecycle handling
authorSathesh B Edara <sedara@marvell.com>
Tue, 16 Sep 2025 13:32:07 +0000 (06:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:16:44 +0000 (11:16 +0200)
commit0357a37b4a8b9a2f62fe0e3fb23b7c869b57f52d
tree3a743411ca87add556c4d8a1e7338d613f0e0394
parente2019c7d3a3e31833bf4c8d7d3258a54e99653b8
octeon_ep: fix VF MAC address lifecycle handling

[ Upstream commit a72175c985132885573593222a7b088cf49b07ae ]

Currently, VF MAC address info is not updated when the MAC address is
configured from VF, and it is not cleared when the VF is removed. This
leads to stale or missing MAC information in the PF, which may cause
incorrect state tracking or inconsistencies when VFs are hot-plugged
or reassigned.

Fix this by:
 - storing the VF MAC address in the PF when it is set from VF
 - clearing the stored VF MAC address when the VF is removed

This ensures that the PF always has correct VF MAC state.

Fixes: cde29af9e68e ("octeon_ep: add PF-VF mailbox communication")
Signed-off-by: Sathesh B Edara <sedara@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250916133207.21737-1-sedara@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c