On Fri, Nov 21, 2025 at 12:49:03PM +0000, Andre Carvalho wrote:
> Attempt to resume a previously deactivated target when the associated
> interface comes back (NETDEV_UP event is received) by calling
> __netpoll_setup on the device.
> 
> Depending on how the target was setup (by mac or interface name), the
> corresponding field is compared with the device being brought up.
> 
> Targets that are candidates for resuming are removed from the target list
> and added to a temp list, as __netpoll_setup is IRQ unsafe.
> __netpoll_setup assumes RTNL is held (which is guaranteed to be the
> case when handling the event). In case of success, hold a reference to
> the device which will be removed upon target (or netconsole) removal by
> netpoll_cleanup.
> 
> Target transitions to STATE_DISABLED in case of failures resuming it to
> avoid retrying the same target indefinitely.
> 
> Signed-off-by: Andre Carvalho <[email protected]>

Reviewed-by: Breno Leitao <[email protected]>

Reply via email to