Skip to content

Commit

Permalink
RDMA/nes: Turn carrier off on ifdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maciej Sosnowski authored and Roland Dreier committed Oct 6, 2010
1 parent 2932772 commit 52106bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/nes/nes_nic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52106bd

Please sign in to comment.