aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbevf/ixgbevf_main.c
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2010-01-22 17:47:37 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-23 04:13:56 -0500
commitda6b33306801af7ee6479c177051e70842974932 (patch)
treee4c4344315241f07a10188cd4306e18dc7947386 /drivers/net/ixgbevf/ixgbevf_main.c
parentc0456c231a8b2981128cc29e211b7bad1bd997df (diff)
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: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbevf/ixgbevf_main.c')
-rw-r--r--drivers/net/ixgbevf/ixgbevf_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c
index 0a27fa17e7ff..623353db11ba 100644
--- a/drivers/net/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ixgbevf/ixgbevf_main.c
@@ -2381,6 +2381,8 @@ static void ixgbevf_watchdog_task(struct work_struct *work)
2381 &link_up, false)) != 0) { 2381 &link_up, false)) != 0) {
2382 adapter->link_up = link_up; 2382 adapter->link_up = link_up;
2383 adapter->link_speed = link_speed; 2383 adapter->link_speed = link_speed;
2384 netif_carrier_off(netdev);
2385 netif_tx_stop_all_queues(netdev);
2384 schedule_work(&adapter->reset_task); 2386 schedule_work(&adapter->reset_task);
2385 goto pf_has_reset; 2387 goto pf_has_reset;
2386 } 2388 }