pch_gbe: don't re-set RX_FIFO_ERR flag in napi_poll
authorVeaceslav Falico <vfalico@redhat.com>
Mon, 22 Oct 2012 04:43:24 +0000 (04:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2012 06:31:15 +0000 (02:31 -0400)
commit9c0314e111a540620441b27aeedb55f572f812f5
treede3f5fd73ba858ad0b9ea090165f9873ccdf1057
parente408a9ff3c7c371d0e2a47a9eb8fa3de48fea30d
pch_gbe: don't re-set RX_FIFO_ERR flag in napi_poll

If we were in RX_FIFO_ERR state and entered pch_gbe_napi_poll(), we'll
anyway clean some rx space and thus can continue to receive more packets.
Currently, we re-set the RX_FIFO_ERR in situations when we've exhausted our
budget for RX cleaning or cleaned some TX packets. Removing it gives us
+20%-40% speed increase and a lot less of RX_FIFO_ERRors reported.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c