aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/sfc/falcon_xmac.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/sfc/falcon_xmac.c b/drivers/net/sfc/falcon_xmac.c
index 55c0d9760be8..ab114b4c3426 100644
--- a/drivers/net/sfc/falcon_xmac.c
+++ b/drivers/net/sfc/falcon_xmac.c
@@ -554,9 +554,11 @@ void falcon_update_stats_xmac(struct efx_nic *efx)
554 554
555 /* Update derived statistics */ 555 /* Update derived statistics */
556 mac_stats->tx_good_bytes = 556 mac_stats->tx_good_bytes =
557 (mac_stats->tx_bytes - mac_stats->tx_bad_bytes); 557 (mac_stats->tx_bytes - mac_stats->tx_bad_bytes -
558 mac_stats->tx_control * 64);
558 mac_stats->rx_bad_bytes = 559 mac_stats->rx_bad_bytes =
559 (mac_stats->rx_bytes - mac_stats->rx_good_bytes); 560 (mac_stats->rx_bytes - mac_stats->rx_good_bytes -
561 mac_stats->rx_control * 64);
560} 562}
561 563
562int falcon_check_xmac(struct efx_nic *efx) 564int falcon_check_xmac(struct efx_nic *efx)