Skip to content

Commit

Permalink
cxgb3 - Limit multiqueue setting to msi-x
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Divy Le Ray authored and Jeff Garzik committed Nov 11, 2008
1 parent 9f64306 commit f9ee388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f9ee388

Please sign in to comment.