Re: [PATCH net-next 1/9] netpoll: export carrier_timeout via netpoll_get_carrier_timeout()

From: Gustavo Luiz Duarte

Date: Mon Jul 27 2026 - 19:26:53 EST


On Fri, Jul 24, 2026 at 4:05 PM Breno Leitao <leitao@xxxxxxxxxx> wrote:
>
> netpoll_wait_carrier() is only used in netconsole, and it will move to
> netconsole.
>
> The carrier_timeout module parameter has to stay in netpoll so the
> existing netpoll.carrier_timeout kernel parameter keeps working for
> current users, and we don't break user compatibility.
>
> Add a netpoll_get_carrier_timeout() accessor and export it so netconsole
> can read the value once the carrier wait lives there. Drop the now
> redundant timeout argument from netpoll_wait_carrier() (its only caller
> passed carrier_timeout) and read the parameter directly while the helper
> still lives here.
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Reviewed-by: Gustavo Luiz Duarte <gustavold@xxxxxxxxx>