From: Florian Fainelli Date: Thu, 26 Jun 2014 17:06:46 +0000 (-0700) Subject: net: systemport: fix TX NAPI work done return value X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f62d9bed0cdee5f9341b64cc7144869282122d;p=pandora-kernel.git net: systemport: fix TX NAPI work done return value Although we do not limit the number of packets the TX completion function bcm_sysport_tx_reclaim() is allowed to reclaim, we were still using its return value as-is. This means that we could hit the WARN() in net/core/dev.c where work_done >= budget. Make sure we do exit the NAPI context when the TX ring is empty, and pretend there was no work to do. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed