aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2014-07-29 10:29:30 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-30 22:09:34 -0400
commitc36c9d50cc6af5c5bfcc195f21b73f55520c15f9 (patch)
tree604e1af7914d0653510f4d2a69c28b152ec4c792 /drivers/net/ethernet/brocade
parent1f74e613ded11517db90b2bd57e9464d9e0fb161 (diff)
bna: fix performance regression
The recent commit "e29aa33 bna: Enable Multi Buffer RX" is causing a performance regression. It does not properly update 'cmpl' pointer at the end of the loop in NAPI handler bnad_cq_process(). The result is only one packet / per NAPI-schedule is processed. Signed-off-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade')
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index 3a77f9ead004..556aab75f490 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -600,9 +600,9 @@ bnad_cq_process(struct bnad *bnad, struct bna_ccb *ccb, int budget)
600 prefetch(bnad->netdev); 600 prefetch(bnad->netdev);
601 601
602 cq = ccb->sw_q; 602 cq = ccb->sw_q;
603 cmpl = &cq[ccb->producer_index];
604 603
605 while (packets < budget) { 604 while (packets < budget) {
605 cmpl = &cq[ccb->producer_index];
606 if (!cmpl->valid) 606 if (!cmpl->valid)
607 break; 607 break;
608 /* The 'valid' field is set by the adapter, only after writing 608 /* The 'valid' field is set by the adapter, only after writing