OSDN Git Service

TI DaVinci EMAC: Fix asymmetric handling of packets in NAPI Poll function.
authorSriram <srk@ti.com>
Thu, 29 Jul 2010 02:33:59 +0000 (02:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jul 2010 06:55:37 +0000 (23:55 -0700)
commit3725b1fe0b9c7e5ba3c4f6e585cd93a7174c1e07
treed294d986150fbd08adf5ee219b714d6123c525e6
parent84da2658a619c2d96fae6741580879cc6d7a4cd1
TI DaVinci EMAC: Fix asymmetric handling of packets in NAPI Poll function.

The current implementation of NAPI poll function in the driver does not service
Rx packets, error condition even if a single Tx packet gets serviced in
the napi poll call. This behavior severely affects performance for specific use
cases. This patch modifies the poll function implementation to service tx/rx
packets in an identical manner.

Signed-off-by: Sriramakrishnan <srk@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/davinci_emac.c