staging: et131x: Tidy up rx/tx dropped & bytes stats
authorMark Einon <mark.einon@gmail.com>
Thu, 11 Sep 2014 21:59:41 +0000 (22:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:02:12 +0000 (16:02 -0700)
Remove some fairly useless comments regarding rx/tx _bytes and
_dropped, and use rcvd_pkts_dropped stat value to provide rx_dropped.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c

index c1ba51af3207a433547524f3e597fe25960470fd..565d552d531a2a447c07e8636f50bfa37cd53ae9 100644 (file)
@@ -4002,17 +4002,9 @@ static struct net_device_stats *et131x_stats(struct net_device *netdev)
        stats->rx_length_errors = devstat->rx_length_errs;
        stats->rx_over_errors = devstat->rx_overflows;
        stats->rx_crc_errors = devstat->rx_crc_errs;
+       stats->rx_dropped = devstat->rcvd_pkts_dropped;
 
-       /* NOTE: These stats don't have corresponding values in CE_STATS,
-        * so we're going to have to update these directly from within the
-        * TX/RX code
-        */
-       /* stats->rx_bytes            = 20; devstat->; */
-       /* stats->tx_bytes            = 20;  devstat->; */
-       /* stats->rx_dropped          = devstat->; */
-       /* stats->tx_dropped          = devstat->; */
-
-       /*  NOTE: Not used, can't find analogous statistics */
+       /* NOTE: Not used, can't find analogous statistics */
        /* stats->rx_frame_errors     = devstat->; */
        /* stats->rx_fifo_errors      = devstat->; */
        /* stats->rx_missed_errors    = devstat->; */
This page took 0.032463 seconds and 5 git commands to generate.