[ewg] [PATCH] RDMA/nes: turn carrier off on ifdown

Chien Tung chien.tin.tung at intel.com
Wed Sep 1 06:39:27 PDT 2010


From: Maciej Sosnowski <maciej.sosnowski at intel.com>

This enables bonding driver to detect interface down.  This
fixes OFED bug 2104.
https://bugs.openfabrics.org/show_bug.cgi?id=2104

Signed-off-by: Maciej Sosnowski <maciej.sosnowski at intel.com>
Signed-off-by: Chien Tung <chien.tin.tung at intel.com>
---
 kernel_patches/fixes/nes_0044_carrier_off.patch |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 kernel_patches/fixes/nes_0044_carrier_off.patch

diff --git a/kernel_patches/fixes/nes_0044_carrier_off.patch b/kernel_patches/fixes/nes_0044_carrier_off.patch
new file mode 100644
index 0000000..37d9803
--- /dev/null
+++ b/kernel_patches/fixes/nes_0044_carrier_off.patch
@@ -0,0 +1,12 @@
+diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
+index a0033fb..4d26815 100644
+--- a/drivers/infiniband/hw/nes/nes_nic.c
++++ b/drivers/infiniband/hw/nes/nes_nic.c
+@@ -270,6 +270,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);
-- 
1.6.4.2




More information about the ewg mailing list