Driver: Vmxnet3: Fix ethtool -S to return correct rx queue stats
authorShrikrishna Khare <skhare@vmware.com>
Thu, 15 Jan 2015 19:54:30 +0000 (11:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jan 2015 05:30:05 +0000 (00:30 -0500)
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>
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vmxnet3/vmxnet3_int.h

index 8a5a90eeb4f9ebe9dca18562af7f8d6b991d1c6b..4c8a944d58b41f0e42c1d9e34acb83a275c34b1d 100644 (file)
@@ -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++)
index 6297d9fb0ae5ee8e0919061deeba33fac95142b0..406144b436bfab576e3958eacda27d1a3a7abe47 100644 (file)
 /*
  * Version numbers
  */
-#define VMXNET3_DRIVER_VERSION_STRING   "1.3.2.0-k"
+#define VMXNET3_DRIVER_VERSION_STRING   "1.3.3.0-k"
 
 /* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
-#define VMXNET3_DRIVER_VERSION_NUM      0x01030200
+#define VMXNET3_DRIVER_VERSION_NUM      0x01030300
 
 #if defined(CONFIG_PCI_MSI)
        /* RSS only makes sense if MSI-X is supported. */