Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: emac: Fix napi poll list corruption
[ Upstream commit f559560 ] This patch is pretty much a carbon copy of commit 3079c65 ("caif: Fix napi poll list corruption") with "caif" replaced by "emac". The commit d75b1ad ("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 <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information