pch_gbe: Fixed the issue on which PC was frozen when link was downed.
authorToshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Sun, 25 Sep 2011 21:27:42 +0000 (21:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2011 18:20:39 +0000 (14:20 -0400)
When a link was downed during network use,
there is an issue on which PC freezes.

This patch fixed this issue.

Signed-off-by: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pch_gbe/pch_gbe_main.c

index 567ff10889be62e670eb352684b7bfdf7802af71..5474189d320be95941c155e5bd74a4de5e4188f1 100644 (file)
@@ -2195,7 +2195,7 @@ static int pch_gbe_napi_poll(struct napi_struct *napi, int budget)
                /* If no Tx and not enough Rx work done,
                 * exit the polling mode
                 */
-               if ((work_done < budget) || !netif_running(netdev))
+               if (work_done < budget)
                        poll_end_flag = true;
        }