]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-analog-linux-kernel/afd-analog.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)
commitade4dc3e616e33c80d7e62855fe1b6f9895bc7c3
tree79cab855d08028f83b7fe4bb94374dbbf8625adf
parentea70858423c5163ecea8749d8bb517220eac667b
bna: fix interrupts storm caused by erroneous packets

The commit "e29aa33 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: e29aa33 ("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