mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
pch_gbe: Fixed the issue on which PC was frozen when link was downed.
commit 5f3a114190 upstream.
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>
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7814e8ef7e
commit
5a9ee1d0c2
@@ -2128,7 +2128,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user