bna: fix performance regression
authorIvan Vecera <ivecera@redhat.com>
Tue, 29 Jul 2014 14:29:30 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Aug 2014 01:38:24 +0000 (09:38 +0800)
commite4a6605a6f2be752a67bd0005b059c57b6bc1a28
tree06645ee1b865dfb1f3f0d79be1e11884f6d1b85f
parentc796399ce155470156af1b4eadb92fd7b48ef370
bna: fix performance regression

[ Upstream commit c36c9d50cc6af5c5bfcc195f21b73f55520c15f9 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/brocade/bna/bnad.c