summaryrefslogtreecommitdiffstats
path: root/drivers/net/vmxnet3/vmxnet3_ethtool.c
diff options
context:
space:
mode:
authorShrikrishna Khare <skhare@vmware.com>2015-01-15 11:54:30 -0800
committerDavid S. Miller <davem@davemloft.net>2015-01-16 00:30:05 -0500
commit331b9ab80a1c65703ff0f198a4619a5cddf7da92 (patch)
treeabc064bba1b584e2ea8fbe0cf4b29c9e3d8e8634 /drivers/net/vmxnet3/vmxnet3_ethtool.c
parent12d872511cdf71d86a2547b32c0d86133d1d0f41 (diff)
downloadop-kernel-dev-331b9ab80a1c65703ff0f198a4619a5cddf7da92.zip
op-kernel-dev-331b9ab80a1c65703ff0f198a4619a5cddf7da92.tar.gz
Driver: Vmxnet3: Fix ethtool -S to return correct rx queue stats
Signed-off-by: Gao Zhenyu <gzhenyu@vmware.com> Signed-off-by: Shrikrishna Khare <skhare@vmware.com> Reviewed-by: Shreyas N Bhatewara <sbhatewara@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_ethtool.c')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c
index 8a5a90e..4c8a944 100644
--- a/drivers/net/vmxnet3/vmxnet3_ethtool.c
+++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c
@@ -323,7 +323,7 @@ vmxnet3_get_ethtool_stats(struct net_device *netdev,
vmxnet3_tq_driver_stats[i].offset);
}
- for (j = 0; j < adapter->num_tx_queues; j++) {
+ for (j = 0; j < adapter->num_rx_queues; j++) {
base = (u8 *)&adapter->rqd_start[j].stats;
*buf++ = (u64) j;
for (i = 1; i < ARRAY_SIZE(vmxnet3_rq_dev_stats); i++)
OpenPOWER on IntegriCloud