Commit 41ff7060 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Kamal Mostafa

net: eth: altera: fix napi poll_list corruption

[ Upstream commit 4548a697 ]

tse_poll() calls __napi_complete() with irq enabled.  This leads napi
poll_list corruption and may stop all napi drivers working.
Use napi_complete() instead of __napi_complete().
Signed-off-by: default avatarAtsushi Nemoto <nemoto@toshiba-tops.co.jp>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent c2a2cb03
...@@ -501,8 +501,7 @@ static int tse_poll(struct napi_struct *napi, int budget) ...@@ -501,8 +501,7 @@ static int tse_poll(struct napi_struct *napi, int budget)
if (rxcomplete >= budget || txcomplete > 0) if (rxcomplete >= budget || txcomplete > 0)
return rxcomplete; return rxcomplete;
napi_gro_flush(napi, false); napi_complete(napi);
__napi_complete(napi);
netdev_dbg(priv->dev, netdev_dbg(priv->dev,
"NAPI Complete, did %d packets with budget %d\n", "NAPI Complete, did %d packets with budget %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment