Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da6b3330 authored by Greg Rose's avatar Greg Rose Committed by David S. Miller
Browse files

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: default avatarGreg Rose <gregory.v.rose@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c0456c23
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
		}