Re: [PATCH net-next v2] net: ti: icssg_prueth: add TAPRIO offload support
From: Andrew Lunn
Date: Thu Sep 21 2023 - 16:32:39 EST
> > + if (!netif_running(ndev)) {
> > + netdev_err(ndev, "interface is down, link speed unknown\n");
> > + return -ENETDOWN;
> > + }
>
> Do we really need this?
The error message suggests it is wrong anyway. netif_running() being
true means it is admin up. But the carrier might be down, and so the
link speed is unknown. So maybe this should be using netif_carrier_ok() ?
Andrew