Re: [net-next v1 6/6] net: stmmac: ethtool: Do NOT call phylink function in NCSI mode.
From: Andrew Lunn
Date: Wed Jun 10 2026 - 04:38:22 EST
> @@ -424,6 +436,9 @@ stmmac_get_pauseparam(struct net_device *netdev,
> {
> struct stmmac_priv *priv = netdev_priv(netdev);
>
> + if (priv->plat->use_ncsi)
> + return;
> +
> phylink_ethtool_get_pauseparam(priv->phylink, pause);
> }
>
> @@ -433,6 +448,9 @@ stmmac_set_pauseparam(struct net_device *netdev,
> {
> struct stmmac_priv *priv = netdev_priv(netdev);
>
> + if (priv->plat->use_ncsi)
> + return -EOPNOTSUPP;
> +
> return phylink_ethtool_set_pauseparam(priv->phylink, pause);
> }
Why is pause not supported with NCSI? There are two modes for
Pause. It can be negotiated, or it can be forced. Negotiation cannot
be used, there is not a link peer as such, but it should be possible
to force the configuration.
I am however assuming that pause frames do get forwarded by the other
end of the link. Does the NCSI standard say anything about that?
Andrew