mirror of https://gitee.com/openkylin/linux.git
[PATCH] e1000: correct rx_dropped counting
Do not count frames dropped by the hardware as part of rx_dropped. Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
1141455d5e
commit
bd061bf1ff
|
@ -2544,7 +2544,6 @@ e1000_update_stats(struct e1000_adapter *adapter)
|
|||
adapter->stats.crcerrs + adapter->stats.algnerrc +
|
||||
adapter->stats.rlec + adapter->stats.mpc +
|
||||
adapter->stats.cexterr;
|
||||
adapter->net_stats.rx_dropped = adapter->stats.mpc;
|
||||
adapter->net_stats.rx_length_errors = adapter->stats.rlec;
|
||||
adapter->net_stats.rx_crc_errors = adapter->stats.crcerrs;
|
||||
adapter->net_stats.rx_frame_errors = adapter->stats.algnerrc;
|
||||
|
|
Loading…
Reference in New Issue