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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:52:46 +0000 (09:52 +0100)
commit63f2bd86ccc0a2864bdb0d9bb7bb6735276019af
tree1c330ba77eefae6a4cf61a78260fe27f0da240cc
parent39797254631553b51b2e64d5160ff8709a66254c
can: ti_hecc: Fix napi poll return value for repoll

commit f6c23b174c3c96616514827407769cbcfc8005cf upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/ti_hecc.c