diff options
author | Michael Chan <michael.chan@broadcom.com> | 2016-05-10 19:18:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-11 23:46:09 -0400 |
commit | fa7e28127a5ad9fd55ac9c7707d8c8b835113a7c (patch) | |
tree | 10bed408042dacc3bc4a73f84126477c67f55138 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | 376a5b8647d6c56cb8f104d7ad0390b4f4057e70 (diff) |
bnxt_en: Add workaround to detect bad opaque in rx completion (part 2)
Add detection and recovery code when the hardware returned opaque value
does not match the expected consumer index. Once the issue is detected,
we skip the processing of all RX and LRO/GRO packets. These completion
entries are discarded without sending the SKB to the stack and without
producing new buffers. The function will be reset from a workqueue.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 52f2d74a0d04..de9d53eee3dd 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -637,6 +637,7 @@ struct bnxt_napi { #ifdef CONFIG_NET_RX_BUSY_POLL atomic_t poll_state; #endif + bool in_reset; }; #ifdef CONFIG_NET_RX_BUSY_POLL |