It is observed that sometimes during init, the bnxt_int_handler() gets
invoked while the cpr->cp_db.doorbell is not yet initialized. Check for
the same and return.
Fixes:
f7ecea911ec5 ("net/bnxt: fix interrupt handler")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
raw_cons = cpr->cp_raw_cons;
while (1) {
- if (!cpr || !cpr->cp_ring_struct)
+ if (!cpr || !cpr->cp_ring_struct || !cpr->cp_db.doorbell)
return;
cons = RING_CMP(cpr->cp_ring_struct, raw_cons);