Skip to contentSkip to conversation

cxgb3 - Limit multiqueue setting to msi-x

PATCH New Divy Le Ray 1 participant 1 message Nov 9, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 cxgb3 - Limit multiqueue setting to msi-x

From: Divy Le Ray <[email protected]>

Allow multiqueue setting in MSI-X mode only

---

 drivers/net/cxgb3/cxgb3_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb3/cxgb3_main.c +1 -1
index 1ace41a..f66367e 100644
@@ -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))