Skip to content

Commit b93f79b

Browse files
Ganesh Goudardavem330
authored andcommitted
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: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: Arjun V <arjun@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 425df17 commit b93f79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ static void cxgb_get_stats(struct net_device *dev,
24002400
ns->rx_over_errors = 0;
24012401
ns->rx_crc_errors = stats.rx_fcs_err;
24022402
ns->rx_frame_errors = stats.rx_symbol_err;
2403-
ns->rx_fifo_errors = stats.rx_ovflow0 + stats.rx_ovflow1 +
2403+
ns->rx_dropped = stats.rx_ovflow0 + stats.rx_ovflow1 +
24042404
stats.rx_ovflow2 + stats.rx_ovflow3 +
24052405
stats.rx_trunc0 + stats.rx_trunc1 +
24062406
stats.rx_trunc2 + stats.rx_trunc3;

0 commit comments

Comments
 (0)