]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cxgb3 - Limit multiqueue setting to msi-x
authorDivy Le Ray <divy@chelsio.com>
Sun, 9 Nov 2008 08:55:33 +0000 (00:55 -0800)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 11 Nov 2008 08:50:43 +0000 (03:50 -0500)
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>
drivers/net/cxgb3/cxgb3_main.c

index 1ace41a13ac360363b2857475920a014daad4e94..f66367ed693296f45ac4475d5769d3b7fc09348d 100644 (file)
@@ -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))