]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
vmxnet3: Use single tx queue when CONFIG_PCI_MSI not defined
authorShreyas Bhatewara <sbhatewara@vmware.com>
Tue, 10 May 2011 06:13:56 +0000 (06:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2011 21:32:53 +0000 (17:32 -0400)
Resending this patch with few changes.

Avoid multiple queues when MSI or MSI-X not available

Limit number of Tx queues to 1 if MSI/MSI-X support is not configured in
the kernel. This will make number of tx and rx queues equal when MSI/X
is not configured thus providing better performance.

Signed-off-by: Bhavesh Davda <bhavesh@vmware.com>
Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_int.h

index c0da230961601f1c550adbf02790da6a6f249921..fa6e2ac7475a337664117cc494930877cf5dc10e 100644 (file)
@@ -2884,6 +2884,9 @@ vmxnet3_probe_device(struct pci_dev *pdev,
        int num_tx_queues;
        int num_rx_queues;
 
+       if (!pci_msi_enabled())
+               enable_mq = 0;
+
 #ifdef VMXNET3_RSS
        if (enable_mq)
                num_rx_queues = min(VMXNET3_DEVICE_MAX_RX_QUEUES,
index 8ba7b5f67de22e6fe85d7c8aee06585d9a293928..f50d36fdf4056a9774434a9fb51eebd937b53117 100644 (file)
 /*
  * Version numbers
  */
-#define VMXNET3_DRIVER_VERSION_STRING   "1.0.25.0-k"
+#define VMXNET3_DRIVER_VERSION_STRING   "1.1.9.0-k"
 
 /* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
-#define VMXNET3_DRIVER_VERSION_NUM      0x01001900
+#define VMXNET3_DRIVER_VERSION_NUM      0x01010900
 
 #if defined(CONFIG_PCI_MSI)
        /* RSS only makes sense if MSI-X is supported. */