[openib-general] [PATCH incremental] IB/ipoib_cm: interoperability fix

Michael S. Tsirkin mst at mellanox.co.il
Tue Jan 16 05:41:19 PST 2007


We don't support creating UC connections at the moment, so we should
fall back to UD if remote side only supports UC, but not RC.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

---

Roland,
This is an incremental patch, please apply in -mm on top of the last one.
Alternatively, I can repost the whole patch.
Let me know.

diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h
index bb35d05..8082d50 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib.h
+++ b/drivers/infiniband/ulp/ipoib/ipoib.h
@@ -396,7 +396,8 @@ int ipoib_pkey_dev_delay_open(struct net_device *dev);
 #define IPOIB_FLAGS_RC          0x80
 #define IPOIB_FLAGS_UC          0x40
 
-#define IPOIB_CM_SUPPORTED(ha)   (ha[0] & (IPOIB_FLAGS_RC | IPOIB_FLAGS_UC))
+/* We don't support UC connections at the moment */
+#define IPOIB_CM_SUPPORTED(ha)   (ha[0] & (IPOIB_FLAGS_RC))
 
 static inline int ipoib_cm_admin_enabled(struct net_device *dev)
 {

-- 
MST




More information about the general mailing list