alistair23-linux/drivers/net/ethernet/ibm/emac
Christian Lamparter f55956065e net: emac: Fix napi poll list corruption
This patch is pretty much a carbon copy of
commit 3079c65214 ("caif: Fix napi poll list corruption")
with "caif" replaced by "emac".

The commit d75b1ade56 ("net: less interrupt masking in NAPI")
breaks emac.

It is now required that if the entire budget is consumed when poll
returns, the napi poll_list must remain empty.  However, like some
other drivers emac tries to do a last-ditch check and if there is
more work it will call napi_reschedule and then immediately process
some of this new work.  Should the entire budget be consumed while
processing such new work then we will violate the new caller
contract.

This patch fixes this by not touching any work when we reschedule
in emac.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-19 16:20:25 -07:00
..
core.c net: ibm: emac: Fix some error handling path in 'emac_probe()' 2017-08-20 19:53:08 -07:00
core.h net: ibm: emac: Fix some error handling path in 'emac_probe()' 2017-08-20 19:53:08 -07:00
debug.h net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
emac.h
Kconfig net: emac: add support for device-tree based PHY discovery and setup 2017-02-22 15:36:47 -05:00
Makefile net: ibm: emac: remove unused sysrq handler for 'c' key 2017-04-05 07:26:18 -07:00
mal.c net: emac: Fix napi poll list corruption 2017-09-19 16:20:25 -07:00
mal.h
phy.c drivers: net: emac: add const to mii_phy_ops structures 2017-06-08 15:32:48 -04:00
phy.h
rgmii.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
rgmii.h
tah.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
tah.h
zmii.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
zmii.h