Avoid netif_wake_queue().
This commit is contained in:
parent
1be2bb6f27
commit
b9d5cf13d0
|
|
@ -4816,7 +4816,8 @@ static void rtl_task(struct work_struct *work)
|
|||
if (test_and_clear_bit(RTL_FLAG_TASK_RESET_PENDING, tp->wk.flags)) {
|
||||
reset:
|
||||
rtl_reset_work(tp);
|
||||
netif_wake_queue(tp->dev);
|
||||
if (!get_ecdev(tp))
|
||||
netif_wake_queue(tp->dev);
|
||||
} else if (test_and_clear_bit(RTL_FLAG_TASK_RESET_NO_QUEUE_WAKE, tp->wk.flags)) {
|
||||
rtl_reset_work(tp);
|
||||
}
|
||||
|
|
@ -4848,7 +4849,8 @@ static void r8169_phylink_handler(struct net_device *ndev)
|
|||
if (netif_carrier_ok(ndev)) {
|
||||
rtl_link_chg_patch(tp);
|
||||
pm_request_resume(d);
|
||||
netif_wake_queue(tp->dev);
|
||||
if (!get_ecdev(tp))
|
||||
netif_wake_queue(tp->dev);
|
||||
} else {
|
||||
/* In few cases rx is broken after link-down otherwise */
|
||||
if (rtl_is_8125(tp))
|
||||
|
|
|
|||
|
|
@ -4610,7 +4610,8 @@ static void rtl_task(struct work_struct *work)
|
|||
if (test_and_clear_bit(RTL_FLAG_TASK_RESET_PENDING, tp->wk.flags)) {
|
||||
reset:
|
||||
rtl_reset_work(tp);
|
||||
netif_wake_queue(tp->dev);
|
||||
if (!get_ecdev(tp))
|
||||
netif_wake_queue(tp->dev);
|
||||
}
|
||||
out_unlock:
|
||||
rtnl_unlock();
|
||||
|
|
|
|||
Loading…
Reference in New Issue