]> git.baikalelectronics.ru Git - kernel.git/commit
bna: fix interrupts storm caused by erroneous packets
authorIvan Vecera <ivecera@redhat.com>
Thu, 6 Aug 2015 20:48:23 +0000 (22:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 17:58:37 +0000 (10:58 -0700)
commite11c6fa336e2e4898d4a231c1623cd8eb4c6d0e2
tree79cab855d08028f83b7fe4bb94374dbbf8625adf
parent84932a8ebc850dab2fff748bc9bc4a4d83da2a1b
bna: fix interrupts storm caused by erroneous packets

The commit "6596517 bna: Enable Multi Buffer RX" moved packets counter
increment from the beginning of the NAPI processing loop after the check
for erroneous packets so they are never accounted. This counter is used
to inform firmware about number of processed completions (packets).
As these packets are never acked the firmware fires IRQs for them again
and again.

Fixes: 6596517 ("bna: Enable Multi Buffer RX")
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad.c