qlcnic: fix rx bytes statistics
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Mon, 17 May 2010 01:22:10 +0000 (01:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 00:30:54 +0000 (17:30 -0700)
Added lrobytes to it.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c

index db05635..0a52d24 100644 (file)
@@ -1702,7 +1702,7 @@ static struct net_device_stats *qlcnic_get_stats(struct net_device *netdev)
 
        stats->rx_packets = adapter->stats.rx_pkts + adapter->stats.lro_pkts;
        stats->tx_packets = adapter->stats.xmitfinished;
-       stats->rx_bytes = adapter->stats.rxbytes;
+       stats->rx_bytes = adapter->stats.rxbytes + adapter->stats.lrobytes;
        stats->tx_bytes = adapter->stats.txbytes;
        stats->rx_dropped = adapter->stats.rxdropped;
        stats->tx_dropped = adapter->stats.txdropped;