Sfoglia il codice sorgente

[PATCH] ixgb: 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>
John W. Linville 19 anni fa
parent
commit
c535a9dd26
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      drivers/net/ixgb/ixgb_main.c

+ 0 - 2
drivers/net/ixgb/ixgb_main.c

@@ -1616,8 +1616,6 @@ ixgb_update_stats(struct ixgb_adapter *adapter)
 	    adapter->stats.icbc +
 	    adapter->stats.ecbc + adapter->stats.mpc;
 
-	adapter->net_stats.rx_dropped = adapter->stats.mpc;
-
 	/* see above
 	 * adapter->net_stats.rx_length_errors = adapter->stats.rlec;
 	 */