mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 00:42:16 +00:00
RDMA/nes: Turn carrier off on ifdown
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>
This commit is contained in:
parent
2932772156
commit
52106bd24c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user