Skip to content

Commit

Permalink
be2net: Fix rx_drops_no_fragments stat being incorrectly indexed
Browse files Browse the repository at this point in the history
Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Nov 23, 2009
1 parent e7b909a commit 01ed30d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ void netdev_stats_update(struct be_adapter *adapter)
port_stats->rx_udp_checksum_errs;

/* no space in linux buffers: best possible approximation */
dev_stats->rx_dropped = erx_stats->rx_drops_no_fragments[0];
dev_stats->rx_dropped =
erx_stats->rx_drops_no_fragments[adapter->rx_obj.q.id];

/* detailed rx errors */
dev_stats->rx_length_errors = port_stats->rx_in_range_errors +
Expand Down

0 comments on commit 01ed30d

Please sign in to comment.