if (bp->flags & BNXT_FLAG_AGG_RINGS)
                bnxt_db_write(bp, &rxr->rx_agg_db, rxr->rx_agg_prod);
  
 -      cpr = &rxr->bnapi->cp_ring;
 -      cpr->sw_stats->rx.rx_resets++;
 +      if (bp->flags & BNXT_FLAG_SHARED_RINGS) {
 +              rc = bnxt_tx_queue_start(bp, idx);
 +              if (rc)
 +                      goto err_reset;
 +      }
 +
 +      napi_enable(&bnapi->napi);
 +      bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons);
  
-       for (i = 0; i <= bp->nr_vnics; i++) {
+       for (i = 0; i < bp->nr_vnics; i++) {
                vnic = &bp->vnic_info[i];
  
                rc = bnxt_hwrm_vnic_set_rss_p5(bp, vnic, true);
  {
        struct bnxt *bp = netdev_priv(dev);
        struct bnxt_rx_ring_info *rxr;
 +      struct bnxt_cp_ring_info *cpr;
        struct bnxt_vnic_info *vnic;
 +      struct bnxt_napi *bnapi;
        int i;
  
-       for (i = 0; i <= bp->nr_vnics; i++) {
+       for (i = 0; i < bp->nr_vnics; i++) {
                vnic = &bp->vnic_info[i];
                vnic->mru = 0;
                bnxt_hwrm_vnic_update(bp, vnic,