qlcnic: fix rx bytes statistics
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>
This commit is contained in:
parent
02f6e46f35
commit
7e382594a2
1 changed files with 1 additions and 1 deletions
|
@ -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->rx_packets = adapter->stats.rx_pkts + adapter->stats.lro_pkts;
|
||||||
stats->tx_packets = adapter->stats.xmitfinished;
|
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->tx_bytes = adapter->stats.txbytes;
|
||||||
stats->rx_dropped = adapter->stats.rxdropped;
|
stats->rx_dropped = adapter->stats.rxdropped;
|
||||||
stats->tx_dropped = adapter->stats.txdropped;
|
stats->tx_dropped = adapter->stats.txdropped;
|
||||||
|
|
Reference in a new issue