From: Florian Fainelli Date: Wed, 12 Nov 2014 23:40:43 +0000 (-0800) Subject: net: systemport: fix tx work done in TX napi poll X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~201 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dfa9a27b620640322588df399eb8f624b48d877;p=pandora-kernel.git net: systemport: fix tx work done in TX napi poll With commit d75b1ade567 ("net: less interrupt masking in NAPI") napi repoll is done only when work_done == budget. bcm_sysport_tx_poll() always returns 0 whether or not we completed the poll quantum. Fix this by returning either 0 when we did complete the TX ring reclaim, or budget to trigger a repoll. Fixes: d75b1ade567 ("net: less interrupt masking in NAPI") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed