]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Do not process completion entries after fatal condition detected.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 25 Jan 2021 07:08:21 +0000 (02:08 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jan 2021 03:20:05 +0000 (19:20 -0800)
commit19d9a5c84d24c31216b5ae29279d3f253a13bbd1
tree5add796edc9a938e16f1498649a41b3dcf64597f
parent2065c0f77273186df58d10531d55d4432b22bc05
bnxt_en: Do not process completion entries after fatal condition detected.

Once the firmware fatal condition is detected, we should cease
comminication with the firmware and hardware quickly even if there
are many completion entries in the completion rings.  This will
speed up the recovery process and prevent further I/Os that may
cause further exceptions.

Do not proceed in the NAPI poll function if fatal condition is
detected.  Call napi_complete() and return without arming interrupts.
Cleanup of all rings and reset are imminent.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c