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)
commite154b639bbe53dc91d1873cd37d162bb2fe87aab
tree1d1e81f147be5f14a2bea69fe43509d09dd4afe9
parentafd7614c00e364f8f1327e73ad291b02f6d4d1a6
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>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_int.h