can: ti_hecc: Fix napi poll return value for repoll
authorOliver Stäbler <oliver.staebler@bytesatwork.ch>
Mon, 20 Nov 2017 13:45:15 +0000 (14:45 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 1 Dec 2017 10:20:52 +0000 (11:20 +0100)
commitf6c23b174c3c96616514827407769cbcfc8005cf
tree3e057f9a641e9aab867505bb1af06552efb7ce5d
parent8bd13bd522ff7dfa0eb371921aeb417155f7a3be
can: ti_hecc: Fix napi poll return value for repoll

After commit d75b1ade567f ("net: less interrupt masking in NAPI") napi
repoll is done only when work_done == budget.
So we need to return budget if there are still packets to receive.

Signed-off-by: Oliver Stäbler <oliver.staebler@bytesatwork.ch>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ti_hecc.c