]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add workaround to detect bad opaque in rx completion (part 2)
authorMichael Chan <michael.chan@broadcom.com>
Tue, 10 May 2016 23:18:00 +0000 (19:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2016 03:46:09 +0000 (23:46 -0400)
commit142b0d0984db2d04c025060bf770db0e710e75eb
tree10bed408042dacc3bc4a73f84126477c67f55138
parent7ef3b9e9937af72e8d3e0a46d95e6bd01bdb081e
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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h