diff options
author | Sathya Perla <sathyap@serverengines.com> | 2009-11-22 17:01:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-23 13:44:21 -0500 |
commit | 01ed30da5d2e718df458f1680fd97751a769c1a2 (patch) | |
tree | b8134167367b550949c528146a05c32e540dc074 /drivers/net/benet/be_main.c | |
parent | e7b909a68cfb83e4bafdadac39534969ce260518 (diff) |
be2net: Fix rx_drops_no_fragments stat being incorrectly indexed
Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r-- | drivers/net/benet/be_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 919fd82ebbae..b0ff06e41f75 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -170,7 +170,8 @@ void netdev_stats_update(struct be_adapter *adapter) | |||
170 | port_stats->rx_udp_checksum_errs; | 170 | port_stats->rx_udp_checksum_errs; |
171 | 171 | ||
172 | /* no space in linux buffers: best possible approximation */ | 172 | /* no space in linux buffers: best possible approximation */ |
173 | dev_stats->rx_dropped = erx_stats->rx_drops_no_fragments[0]; | 173 | dev_stats->rx_dropped = |
174 | erx_stats->rx_drops_no_fragments[adapter->rx_obj.q.id]; | ||
174 | 175 | ||
175 | /* detailed rx errors */ | 176 | /* detailed rx errors */ |
176 | dev_stats->rx_length_errors = port_stats->rx_in_range_errors + | 177 | dev_stats->rx_length_errors = port_stats->rx_in_range_errors + |