Patchwork [2/2,2.6.28] cxgb3 - Limit multiqueue setting to msi-x

login
register
mail settings
Submitter Divy Le Ray
Date Nov. 9, 2008, 8:55 a.m.
Message ID <20081109085533.3558.97321.stgit@speedy5>
Download mbox | patch
Permalink /patch/7907/
State Accepted
Delegated to: Jeff Garzik
Headers show

Comments

Divy Le Ray - Nov. 9, 2008, 8:55 a.m.
From: Divy Le Ray <divy@chelsio.com>

Allow multiqueue setting in MSI-X mode only

Signed-off-by: Divy Le Ray <divy@chelsio.com>
---

 drivers/net/cxgb3/cxgb3_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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