linux_dsm_epyc7002/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 powerpc/44x: Add more changes for APM821XX EMAC driver 2012-03-06 17:07:42 -05:00
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 emac: aggregation of v1-2 PLB errors for IER register 2014-05-30 16:29:57 -07:00
phy.c drivers: net: emac: add const to mii_phy_ops structures 2017-06-08 15:32:48 -04:00
phy.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
rgmii.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
rgmii.h ibm/emac: Remove extern from function prototypes 2013-09-24 12:51:27 -07:00
tah.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
tah.h ibm/emac: Remove extern from function prototypes 2013-09-24 12:51:27 -07:00
zmii.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
zmii.h ibm/emac: Remove extern from function prototypes 2013-09-24 12:51:27 -07:00