RDMA/nes: turn carrier off on ifdown
PATCH 1/1 RDMA/nes: turn carrier off on ifdown
From: Maciej Sosnowski <[email protected]>
This enables bonding driver to detect inteface down.
Signed-off-by Maciej Sosnowski <[email protected]>
Signed-off-by Chien Tung <[email protected]>
--- drivers/infiniband/hw/nes/nes_nic.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/infiniband/hw/nes/nes_nic.c +1 -0
@@ -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