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:
2932772
)
RDMA/nes: Turn carrier off on ifdown
author
Maciej Sosnowski
<maciej.sosnowski@intel.com>
Wed, 1 Sep 2010 13:35:35 +0000
(13:35 +0000)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 6 Oct 2010 21:42:32 +0000
(14:42 -0700)
This lets the bonding driver to detect when an interface goes down.
Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_nic.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/nes/nes_nic.c
b/drivers/infiniband/hw/nes/nes_nic.c
index 10560c796fd6c0ffc591601c610579d3e1b6e8ca..3892e2c0e95a57b38f2bd0258355d43540003e14 100644
(file)
--- a/
drivers/infiniband/hw/nes/nes_nic.c
+++ b/
drivers/infiniband/hw/nes/nes_nic.c
@@
-271,6
+271,7
@@
static int nes_netdev_stop(struct net_device *netdev)
if (netif_msg_ifdown(nesvnic))
printk(KERN_INFO PFX "%s: disabling interface\n", netdev->name);
+ netif_carrier_off(netdev);
/* Disable network packets */
napi_disable(&nesvnic->napi);