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>