summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2008-11-09 00:55:33 -0800
committerJeff Garzik <jgarzik@redhat.com>2008-11-11 03:50:43 -0500
commitf9ee3882969224aa9f086268020c31819be6ae99 (patch)
treeb66ff60ff750eb80aba5a9d6b8c4c932e2a395f6
parent9f64306b8a3949b74cb11d3b2f613e8a2af20fa6 (diff)
downloadop-kernel-dev-f9ee3882969224aa9f086268020c31819be6ae99.zip
op-kernel-dev-f9ee3882969224aa9f086268020c31819be6ae99.tar.gz
cxgb3 - Limit multiqueue setting to msi-x
Allow multiqueue setting in MSI-X mode only Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 1ace41a..f66367e 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -2699,7 +2699,7 @@ static void set_nqsets(struct adapter *adap)
int hwports = adap->params.nports;
int nqsets = SGE_QSETS;
- if (adap->params.rev > 0) {
+ if (adap->params.rev > 0 && adap->flags & USING_MSIX) {
if (hwports == 2 &&
(hwports * nqsets > SGE_QSETS ||
num_cpus >= nqsets / hwports))
OpenPOWER on IntegriCloud