Skip to contentSkip to conversation

RDMA/nes: turn carrier off on ifdown

PATCH New Chien Tung 1 participant 1 message Sep 1, 2010 InfiniBand

lore
Share & tools
lore

Chien Tung

author
#0 lore raw

PATCH 1/1 RDMA/nes: turn carrier off on ifdown

From: Maciej Sosnowski <[email protected]>

This enables bonding driver to detect inteface down.

---
 drivers/infiniband/hw/nes/nes_nic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/infiniband/hw/nes/nes_nic.c +1 -0
index 6dfdd49..37a6733 100644
@@ -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);
Signature · 6 lines
1.6.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html