提交 da6b3330 编写于 作者: G Greg Rose 提交者: David S. Miller

ixgbevf: Tell network stack to stop tx when the VF detects PF reset

When the VF detects that the PF has reset turn off carrier and stop all
tx queues.
Signed-off-by: NGreg Rose <gregory.v.rose@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c0456c23
......@@ -2381,6 +2381,8 @@ static void ixgbevf_watchdog_task(struct work_struct *work)
&link_up, false)) != 0) {
adapter->link_up = link_up;
adapter->link_speed = link_speed;
netif_carrier_off(netdev);
netif_tx_stop_all_queues(netdev);
schedule_work(&adapter->reset_task);
goto pf_has_reset;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册