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>
This commit is contained in:
Divy Le Ray 2008-11-09 00:55:33 -08:00 committed by Jeff Garzik
parent 9f64306b8a
commit f9ee388296

View file

@ -2699,7 +2699,7 @@ static void set_nqsets(struct adapter *adap)
int hwports = adap->params.nports; int hwports = adap->params.nports;
int nqsets = SGE_QSETS; int nqsets = SGE_QSETS;
if (adap->params.rev > 0) { if (adap->params.rev > 0 && adap->flags & USING_MSIX) {
if (hwports == 2 && if (hwports == 2 &&
(hwports * nqsets > SGE_QSETS || (hwports * nqsets > SGE_QSETS ||
num_cpus >= nqsets / hwports)) num_cpus >= nqsets / hwports))