aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-09-10 02:41:06 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-10 15:27:29 -0400
commit80485d3441fc26aff5ddb2bf44baf7a61e1909b4 (patch)
treeb900b993d07936be6b810bb39948f14685338e57
parent1cdc2cfc8af6d1045c844b9e24a7910b57232065 (diff)
sfc: Accumulate RX_NODESC_DROP count in rx_dropped, not rx_over_errors
rx_over_errors appears to be intended as a count of packets that overflow a packet buffer in the NIC. Given that we implement a cut-through receive path, this should always be 0. rx_dropped appears to be the correct counter for packets dropped due to lack of host buffers. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/sfc/efx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index ba674c5ca29e..b385f895bf23 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1546,11 +1546,11 @@ static struct rtnl_link_stats64 *efx_net_stats(struct net_device *net_dev, struc
1546 stats->tx_packets = mac_stats->tx_packets; 1546 stats->tx_packets = mac_stats->tx_packets;
1547 stats->rx_bytes = mac_stats->rx_bytes; 1547 stats->rx_bytes = mac_stats->rx_bytes;
1548 stats->tx_bytes = mac_stats->tx_bytes; 1548 stats->tx_bytes = mac_stats->tx_bytes;
1549 stats->rx_dropped = efx->n_rx_nodesc_drop_cnt;
1549 stats->multicast = mac_stats->rx_multicast; 1550 stats->multicast = mac_stats->rx_multicast;
1550 stats->collisions = mac_stats->tx_collision; 1551 stats->collisions = mac_stats->tx_collision;
1551 stats->rx_length_errors = (mac_stats->rx_gtjumbo + 1552 stats->rx_length_errors = (mac_stats->rx_gtjumbo +
1552 mac_stats->rx_length_error); 1553 mac_stats->rx_length_error);
1553 stats->rx_over_errors = efx->n_rx_nodesc_drop_cnt;
1554 stats->rx_crc_errors = mac_stats->rx_bad; 1554 stats->rx_crc_errors = mac_stats->rx_bad;
1555 stats->rx_frame_errors = mac_stats->rx_align_error; 1555 stats->rx_frame_errors = mac_stats->rx_align_error;
1556 stats->rx_fifo_errors = mac_stats->rx_overflow; 1556 stats->rx_fifo_errors = mac_stats->rx_overflow;