netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] bna: fix interrupts storm caused by erroneous packets
@ 2015-08-06 20:48 Ivan Vecera
  2015-08-07 18:35 ` Rasesh Mody
  2015-08-10 17:58 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Ivan Vecera @ 2015-08-06 20:48 UTC (permalink / raw)
  To: netdev; +Cc: rasesh.mody

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>
---
 drivers/net/ethernet/brocade/bna/bnad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index 0612b19..506047c 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -676,6 +676,7 @@ bnad_cq_process(struct bnad *bnad, struct bna_ccb *ccb, int budget)
 			if (!next_cmpl->valid)
 				break;
 		}
+		packets++;
 
 		/* TODO: BNA_CQ_EF_LOCAL ? */
 		if (unlikely(flags & (BNA_CQ_EF_MAC_ERROR |
@@ -692,7 +693,6 @@ bnad_cq_process(struct bnad *bnad, struct bna_ccb *ccb, int budget)
 		else
 			bnad_cq_setup_skb_frags(rcb, skb, sop_ci, nvecs, len);
 
-		packets++;
 		rcb->rxq->rx_packets++;
 		rcb->rxq->rx_bytes += totlen;
 		ccb->bytes_per_intr += totlen;
-- 
2.4.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH net] bna: fix interrupts storm caused by erroneous packets
  2015-08-06 20:48 [PATCH net] bna: fix interrupts storm caused by erroneous packets Ivan Vecera
@ 2015-08-07 18:35 ` Rasesh Mody
  2015-08-10 17:58 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Rasesh Mody @ 2015-08-07 18:35 UTC (permalink / raw)
  To: Ivan Vecera, netdev

> From: Ivan Vecera [mailto:ivecera@redhat.com]
> Sent: Thursday, August 06, 2015 1:48 PM
> 
> 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>

Thanks!
Rasesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net] bna: fix interrupts storm caused by erroneous packets
  2015-08-06 20:48 [PATCH net] bna: fix interrupts storm caused by erroneous packets Ivan Vecera
  2015-08-07 18:35 ` Rasesh Mody
@ 2015-08-10 17:58 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2015-08-10 17:58 UTC (permalink / raw)
  To: ivecera; +Cc: netdev, rasesh.mody

From: Ivan Vecera <ivecera@redhat.com>
Date: Thu,  6 Aug 2015 22:48:23 +0200

> 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>

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-10 17:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06 20:48 [PATCH net] bna: fix interrupts storm caused by erroneous packets Ivan Vecera
2015-08-07 18:35 ` Rasesh Mody
2015-08-10 17:58 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).