Patch "can: ti_hecc: Fix napi poll return value for repoll" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
can: ti_hecc: Fix napi poll return value for repoll
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
can-ti_hecc-fix-napi-poll-return-value-for-repoll.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
f6c23b174c3c96616514827407769cbcfc8005cfMon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oliver=20St=C3=A4bler?= <[email protected]>
Date: Mon, 20 Nov 2017 14:45:15 +0100
Subject: can: ti_hecc: Fix napi poll return value for repoll
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Oliver Stäbler <[email protected]>
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.
--- drivers/net/can/ti_hecc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/can/ti_hecc.c +3 -0
@@ -637,6 +637,9 @@ static int ti_hecc_rx_poll(struct napi_s mbx_mask =hecc_read (priv,HECC_CANMIM ); mbx_mask |=HECC_TX_MBOX_MASK ;hecc_write (priv,HECC_CANMIM , mbx_mask); + }else { +/* repoll is done only if whole budget is used */ + num_pkts = quota; }return num_pkts;
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/can-ti_hecc-fix-napi-poll-return-value-for-repoll.patch