From: Divy Le Ray Date: Sun, 9 Nov 2008 08:55:33 +0000 (-0800) Subject: cxgb3 - Limit multiqueue setting to msi-x X-Git-Tag: v2.6.28-rc5~58^2~5^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f9ee3882969224aa9f086268020c31819be6ae99;p=linux-2.6-omap-h63xx.git cxgb3 - Limit multiqueue setting to msi-x Allow multiqueue setting in MSI-X mode only Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 1ace41a13ac..f66367ed693 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))