From: John W. Linville Date: Mon, 12 Sep 2005 14:49:00 +0000 (-0400) Subject: [PATCH] ixgb: correct rx_dropped counting X-Git-Tag: firefly_0821_release~39876^2~420 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c535a9dd26d1a4c6dcbd486cbe181a9e71237af1;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index 5c555373adbe..89d6d69be382 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/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; */