Thread (13 messages) flat view 13 messages, 4 authors, 2025-07-28

Re: [PATCH net-next v2 4/4] net: phy: micrel: Add support for lan8842

From: ALOK TIWARI <hidden>
Date: 2025-07-26 11:54:00
Also in: lkml


On 7/25/2025 1:38 AM, Horatiu Vultur wrote:
+static void lan8842_get_phy_stats(struct phy_device *phydev,
+				  struct ethtool_eth_phy_stats *eth_stats,
+				  struct ethtool_phy_stats *stats)
+{
+	struct lan8842_priv *priv = phydev->priv;
+
+	stats->rx_packets = priv->phy_stats.rx_packets;
+	stats->rx_errors = priv->phy_stats.rx_errors;
+	stats->tx_packets = priv->phy_stats.tx_packets;
+	stats->tx_errors = priv->phy_stats.rx_errors;
looks like a copy-paste mistake
stats->tx_errors = priv->phy_stats.tx_errors;
+}
+

Thanks,
Alok
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help