net/bnx2x: fix incorrect number of supported queues
authorCharles (Chas) Williams <ciwillia@brocade.com>
Tue, 28 Jun 2016 16:14:50 +0000 (12:14 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 4 Jul 2016 13:30:23 +0000 (15:30 +0200)
commitdf3e6f7ac792e71eb13889d5a28ae5ceacaf56ec
treece0512148446fd476ff33688bb828a81e06def23
parentfe63783466a8d80cc39ea2f1cd6c5bce693c785a
net/bnx2x: fix incorrect number of supported queues

We need sc->igu_sb_cnt determined before calculating the number of queues
we can support, so move the call to bnx2x_init_rte() to later in the code.

Fixes: 3754101cd74c ("net/bnx2x: fix MSIX vector and VF resource counts")

Signed-off-by: Charles (Chas) Williams <ciwillia@brocade.com>
Acked-by: Rasesh Mody <rasesh.mody@qlogic.com>
drivers/net/bnx2x/bnx2x.c