Explorar o código

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>
Divy Le Ray %!s(int64=17) %!d(string=hai) anos
pai
achega
f9ee388296
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/net/cxgb3/cxgb3_main.c

+ 1 - 1
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))