]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netconsole: clear dev_name for devices bound by mac
authorAndre Carvalho <asantostc@gmail.com>
Sun, 18 Jan 2026 11:00:24 +0000 (11:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:09:11 +0000 (19:09 -0800)
commit5b114087438dcd229c8754c093c44619c346d67c
tree76fd7f24df4ed77cd157411aababf40fc44da06d
parente8f4005ab2d4819805c2f6b19e8bd633f8579bd0
netconsole: clear dev_name for devices bound by mac

This patch makes sure netconsole clears dev_name for devices bound by mac
in order to allow calling setup_netpoll on targets that have previously
been cleaned up (in order to support resuming deactivated targets).

This is required as netpoll_setup populates dev_name even when devices are
matched via mac address. The cleanup is done inside netconsole as bound
by mac is a netconsole concept.

Signed-off-by: Andre Carvalho <asantostc@gmail.com>
Reviewed-by: Breno Leitao <leitao@debian.org>
Tested-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260118-netcons-retrigger-v11-4-4de36aebcf48@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c