netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: eth: altera: fix napi poll_list corruption
@ 2015-09-02  8:49 Atsushi Nemoto
  2015-09-02 18:25 ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Atsushi Nemoto @ 2015-09-02  8:49 UTC (permalink / raw)
  To: Vince Bridgers, netdev

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: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
---
 drivers/net/ethernet/altera/altera_tse_main.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index da48e66..8207877 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -511,8 +511,7 @@ static int tse_poll(struct napi_struct *napi, int budget)
 
 	if (rxcomplete < budget) {
 
-		napi_gro_flush(napi, false);
-		__napi_complete(napi);
+		napi_complete(napi);
 
 		netdev_dbg(priv->dev,
 			   "NAPI Complete, did %d packets with budget %d\n",
-- 

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-03 22:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-02  8:49 [PATCH] net: eth: altera: fix napi poll_list corruption Atsushi Nemoto
2015-09-02 18:25 ` David Miller
2015-09-03  0:52   ` Atsushi Nemoto
2015-09-03  2:42     ` Eric Dumazet
2015-09-03  5:32     ` David Miller
2015-09-03  6:01       ` Atsushi Nemoto
2015-09-03 22:35         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).