aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorShrikrishna Khare <skhare@vmware.com>2015-01-15 14:54:30 -0500
committerDavid S. Miller <davem@davemloft.net>2015-01-16 00:30:05 -0500
commit331b9ab80a1c65703ff0f198a4619a5cddf7da92 (patch)
treeabc064bba1b584e2ea8fbe0cf4b29c9e3d8e8634 /drivers/net/vmxnet3
parent12d872511cdf71d86a2547b32c0d86133d1d0f41 (diff)
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')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_ethtool.c2
-rw-r--r--drivers/net/vmxnet3/vmxnet3_int.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c
index 8a5a90eeb4f9..4c8a944d58b4 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,
323 vmxnet3_tq_driver_stats[i].offset); 323 vmxnet3_tq_driver_stats[i].offset);
324 } 324 }
325 325
326 for (j = 0; j < adapter->num_tx_queues; j++) { 326 for (j = 0; j < adapter->num_rx_queues; j++) {
327 base = (u8 *)&adapter->rqd_start[j].stats; 327 base = (u8 *)&adapter->rqd_start[j].stats;
328 *buf++ = (u64) j; 328 *buf++ = (u64) j;
329 for (i = 1; i < ARRAY_SIZE(vmxnet3_rq_dev_stats); i++) 329 for (i = 1; i < ARRAY_SIZE(vmxnet3_rq_dev_stats); i++)
diff --git a/drivers/net/vmxnet3/vmxnet3_int.h b/drivers/net/vmxnet3/vmxnet3_int.h
index 6297d9fb0ae5..406144b436bf 100644
--- a/drivers/net/vmxnet3/vmxnet3_int.h
+++ b/drivers/net/vmxnet3/vmxnet3_int.h
@@ -69,10 +69,10 @@
69/* 69/*
70 * Version numbers 70 * Version numbers
71 */ 71 */
72#define VMXNET3_DRIVER_VERSION_STRING "1.3.2.0-k" 72#define VMXNET3_DRIVER_VERSION_STRING "1.3.3.0-k"
73 73
74/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */ 74/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
75#define VMXNET3_DRIVER_VERSION_NUM 0x01030200 75#define VMXNET3_DRIVER_VERSION_NUM 0x01030300
76 76
77#if defined(CONFIG_PCI_MSI) 77#if defined(CONFIG_PCI_MSI)
78 /* RSS only makes sense if MSI-X is supported. */ 78 /* RSS only makes sense if MSI-X is supported. */