aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorShreyas Bhatewara <sbhatewara@vmware.com>2011-05-10 02:13:56 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-12 17:32:53 -0400
commite154b639bbe53dc91d1873cd37d162bb2fe87aab (patch)
tree1d1e81f147be5f14a2bea69fe43509d09dd4afe9 /drivers/net/vmxnet3
parentafd7614c00e364f8f1327e73ad291b02f6d4d1a6 (diff)
vmxnet3: Use single tx queue when CONFIG_PCI_MSI not defined
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>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_drv.c3
-rw-r--r--drivers/net/vmxnet3/vmxnet3_int.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index c0da23096160..fa6e2ac7475a 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -2884,6 +2884,9 @@ vmxnet3_probe_device(struct pci_dev *pdev,
2884 int num_tx_queues; 2884 int num_tx_queues;
2885 int num_rx_queues; 2885 int num_rx_queues;
2886 2886
2887 if (!pci_msi_enabled())
2888 enable_mq = 0;
2889
2887#ifdef VMXNET3_RSS 2890#ifdef VMXNET3_RSS
2888 if (enable_mq) 2891 if (enable_mq)
2889 num_rx_queues = min(VMXNET3_DEVICE_MAX_RX_QUEUES, 2892 num_rx_queues = min(VMXNET3_DEVICE_MAX_RX_QUEUES,
diff --git a/drivers/net/vmxnet3/vmxnet3_int.h b/drivers/net/vmxnet3/vmxnet3_int.h
index 8ba7b5f67de2..f50d36fdf405 100644
--- a/drivers/net/vmxnet3/vmxnet3_int.h
+++ b/drivers/net/vmxnet3/vmxnet3_int.h
@@ -68,10 +68,10 @@
68/* 68/*
69 * Version numbers 69 * Version numbers
70 */ 70 */
71#define VMXNET3_DRIVER_VERSION_STRING "1.0.25.0-k" 71#define VMXNET3_DRIVER_VERSION_STRING "1.1.9.0-k"
72 72
73/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */ 73/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
74#define VMXNET3_DRIVER_VERSION_NUM 0x01001900 74#define VMXNET3_DRIVER_VERSION_NUM 0x01010900
75 75
76#if defined(CONFIG_PCI_MSI) 76#if defined(CONFIG_PCI_MSI)
77 /* RSS only makes sense if MSI-X is supported. */ 77 /* RSS only makes sense if MSI-X is supported. */