Re: [PATCH net] selftests: netconsole: only restore MAC when it changed on resume

From: Matthieu Baerts

Date: Sat Jul 11 2026 - 11:35:16 EST


Hi Andre,

On 11/07/2026 00:19, Andre Carvalho wrote:
> The "mac" bind mode reactivation downs the interface, restores the saved
> MAC and renames it to trigger a target resume. This assumes the recreated
> interface comes back with a different MAC, which is true under
> MACAddressPolicy=none (as on the Netdev CI) but not when MACs are
> persistent. In the persistent case netconsole resumes the target on its
> own, and the down/restore/rename flow instead drops it and fails the test.
>
> Guard the block on the MAC having actually changed so the test passes
> under both policies.
Thank you for the patch, it fixed the issue on my side when not forcing
MACAddressPolicy=none.

Tested-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>

Cheers,
Matt