RDMA/nes: Turn carrier off on ifdown
authorMaciej Sosnowski <maciej.sosnowski@intel.com>
Wed, 1 Sep 2010 13:35:35 +0000 (13:35 +0000)
committerRoland 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

index 10560c7..3892e2c 100644 (file)
@@ -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);