Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b93f79be authored by Ganesh Goudar's avatar Ganesh Goudar Committed by David S. Miller
Browse files

cxgb4: Update proper netdev stats for rx drops



Count buffer group drops or truncates as rx drops rather than
rx errors in netdev stats.

Signed-off-by: default avatarGanesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: default avatarArjun V <arjun@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 425df17c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2400,7 +2400,7 @@ static void cxgb_get_stats(struct net_device *dev,
	ns->rx_over_errors   = 0;
	ns->rx_crc_errors    = stats.rx_fcs_err;
	ns->rx_frame_errors  = stats.rx_symbol_err;
	ns->rx_fifo_errors   = stats.rx_ovflow0 + stats.rx_ovflow1 +
	ns->rx_dropped	     = stats.rx_ovflow0 + stats.rx_ovflow1 +
			       stats.rx_ovflow2 + stats.rx_ovflow3 +
			       stats.rx_trunc0 + stats.rx_trunc1 +
			       stats.rx_trunc2 + stats.rx_trunc3;