projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0456c2
)
ixgbevf: Tell network stack to stop tx when the VF detects PF reset
author
Greg Rose
<gregory.v.rose@intel.com>
Fri, 22 Jan 2010 22:47:37 +0000
(22:47 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 23 Jan 2010 09:13:56 +0000
(
01:13
-0800)
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>
drivers/net/ixgbevf/ixgbevf_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ixgbevf/ixgbevf_main.c
b/drivers/net/ixgbevf/ixgbevf_main.c
index 0a27fa17e7ffe5ee7b975cb40841833ba7dcc648..623353db11ba1c19d5e8c485d06787600d49bc12 100644
(file)
--- 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)
&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;
}