bna: fix performance regression
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/net/ethernet/brocade/bna/bnad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/brocade/bna/bnad.c +1 -1
@@ -600,9 +600,9 @@ bnad_cq_process(struct bnad *bnad, struct bna_ccb *ccb, int budget)prefetch (bnad->netdev); cq = ccb->sw_q; - cmpl = &cq[ccb->producer_index];while (packets < budget) { + cmpl = &cq[ccb->producer_index];if (!cmpl->valid)break ;/* The 'valid' field is set by the adapter, only after writing
Signature · 1 line
1.8.5.5
David Miller
maintainerFrom: Ivan Vecera <[email protected]>
Date: Tue, 29 Jul 2014 16:29:30 +0200
Quoted 6 lines
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 <[email protected]>
Applied and queued up for -stable, thanks!