Re: [PATCH V2 net-next] net: fec: add CBS offload support

From: Alexander Lobakin
Date: Mon Feb 13 2023 - 12:45:19 EST


From: Andrew Lunn <andrew@xxxxxxx>
Date: Mon, 13 Feb 2023 17:21:43 +0100

>>> + if (!speed) {
>>> + netdev_err(ndev, "Link speed is 0!\n");
>>
>> ??? Is this possible? If so, why is it checked only here and why can it
>> be possible?
>
> The obvious way this happens is that there is no link partner, so
> auto-neg has not completed yet. The link speed is unknown.

Sure, but why treat it an error path then?

>
> Andrew

Thanks,
Olek