Re: [RFC PATCH v2 7/8] net: sparx5: add ethtool configuration and statistics support

2020-12-19 Thread Andrew Lunn
> +void sparx5_get_stats64(struct net_device *ndev, > + struct rtnl_link_stats64 *stats) > +{ > + struct sparx5_port *port = netdev_priv(ndev); > + struct sparx5 *sparx5 = port->sparx5; > + u64 *portstats; > + > + if (!sparx5->stats) > + return;

[RFC PATCH v2 7/8] net: sparx5: add ethtool configuration and statistics support

2020-12-16 Thread Steen Hegelund
This adds statistic counters for the network interfaces provided by the driver. It also adds CPU port counters (which are not exposed by ethtool). This also adds support for configuring the network interface parameters via ethtool: speed, duplex, aneg etc. Signed-off-by: Steen Hegelund Signed-of