diff options
author | Sathya Perla <sathyap@serverengines.com> | 2009-11-22 22:01:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-23 10:44:21 -0800 |
commit | 01ed30da5d2e718df458f1680fd97751a769c1a2 (patch) | |
tree | b8134167367b550949c528146a05c32e540dc074 /drivers/net/benet | |
parent | e7b909a68cfb83e4bafdadac39534969ce260518 (diff) | |
download | kernel-crypto-01ed30da5d2e718df458f1680fd97751a769c1a2.tar.gz kernel-crypto-01ed30da5d2e718df458f1680fd97751a769c1a2.tar.xz kernel-crypto-01ed30da5d2e718df458f1680fd97751a769c1a2.zip |
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')
-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 919fd82ebba..b0ff06e41f7 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) 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 + |