]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:37:12 +0000 (17:37 -0700)
commitb15347e4d8938f63945f8cb63bcd53f26ccb9380
treed32e4fced2eb66bec01084a7912c45cf8fff61b6
parent89e73f8dbe78a5e39ec825d02157d1fa1da96747
bnxt_en: Add workaround to detect bad opaque in rx completion (part 2)

Orabug: 23221795

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>
(cherry picked from commit fa7e28127a5ad9fd55ac9c7707d8c8b835113a7c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h