net/ice/base: init flag redirect table for parser
[dpdk.git] / drivers / net / bnxt / bnxt_irq.c
index ebdac83..122a1f9 100644 (file)
@@ -33,7 +33,6 @@ void bnxt_int_handler(void *param)
                return;
 
        raw_cons = cpr->cp_raw_cons;
-       cp_ring_size = cpr->cp_ring_struct->ring_size;
        pthread_mutex_lock(&bp->def_cp_lock);
        while (1) {
                if (!cpr || !cpr->cp_ring_struct || !cpr->cp_db.doorbell) {
@@ -46,6 +45,7 @@ void bnxt_int_handler(void *param)
                        return;
                }
 
+               cp_ring_size = cpr->cp_ring_struct->ring_size;
                cons = RING_CMP(cpr->cp_ring_struct, raw_cons);
                cmp = &cpr->cp_desc_ring[cons];