Commit 5f3a1141 authored by Toshiharu Okada's avatar Toshiharu Okada Committed by David S. Miller

pch_gbe: Fixed the issue on which PC was frozen when link was downed.

When a link was downed during network use,
there is an issue on which PC freezes.

This patch fixed this issue.
Signed-off-by: default avatarToshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7091fbd8
...@@ -2195,7 +2195,7 @@ static int pch_gbe_napi_poll(struct napi_struct *napi, int budget) ...@@ -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, /* If no Tx and not enough Rx work done,
* exit the polling mode * exit the polling mode
*/ */
if ((work_done < budget) || !netif_running(netdev)) if (work_done < budget)
poll_end_flag = true; poll_end_flag = true;
} }
......
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