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:51:48 +0000 (09:51 +0800)
commit6980baed350d2e32647595fd06f5281d708fbee0
treefc30e3af2d169b76b94009b5ac438271afd73f47
parent4fe35cff3da65dff640e33f48e1e5986c4094e5f
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