]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2: set maximal number of default RSS queues
authorYuval Mintz <yuvalmin@broadcom.com>
Sun, 1 Jul 2012 03:18:58 +0000 (03:18 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:14 +0000 (15:23 +0800)
(cherry picked from commit 0a742128db29031e55d27e37b1b098433c56033a)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2.c

index 8d398426da2cc4e03e6faf4c81036068fdfd860c..367e8946798ce9531dccb210c61af584b5766d6a 100644 (file)
@@ -6249,7 +6249,7 @@ bnx2_enable_msix(struct bnx2 *bp, int msix_vecs)
 static int
 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi)
 {
-       int cpus = num_online_cpus();
+       int cpus = netif_get_num_default_rss_queues();
        int msix_vecs;
 
        if (!bp->num_req_rx_rings)