Skip to contentSkip to conversation

rdma-cma/iw_cm: export tos field to iwarp providers

PATCH In review Steve Wise 2 participants 5 messages Jun 6, 2014 – Jun 10, 2014 3 messages not in the archive InfiniBand

lore
Share & tools
lore

Steve Wise

author
#0 lore raw

PATCH 1/1 rdma-cma/iw_cm: export tos field to iwarp providers

---

 drivers/infiniband/core/cma.c |    2 ++
 include/rdma/iw_cm.h          |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
drivers/infiniband/core/cma.c +2 -0
index d570030..beda319 100644
@@ -1593,6 +1593,7 @@ static int cma_iw_listen(struct rdma_id_private *id_priv, int backlog)
 	if (IS_ERR(id))
 		return PTR_ERR(id);
 
+	id->tos = id_priv->tos;
 	id_priv->cm_id.iw = id;
 
 	memcpy(&id_priv->cm_id.iw->local_addr, cma_src_addr(id_priv),
@@ -2840,6 +2841,7 @@ static int cma_connect_iw(struct rdma_id_private *id_priv,
 	if (IS_ERR(cm_id))
 		return PTR_ERR(cm_id);
 
+	cm_id->tos = id_priv->tos;
 	id_priv->cm_id.iw = cm_id;
 
 	memcpy(&cm_id->local_addr, cma_src_addr(id_priv),
include/rdma/iw_cm.h +1 -0
index 1017e0b..036bd27 100644
@@ -91,6 +91,7 @@ struct iw_cm_id {
 	/* Used by provider to add and remove refs on IW cm_id */
 	void (*add_ref)(struct iw_cm_id *);
 	void (*rem_ref)(struct iw_cm_id *);
+	u8  tos;
 };
 
 struct iw_cm_conn_param {

--
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

author
#6 lore raw
In reply to a message not in the archive
Quoted 10 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hefty, Sean
Sent: Tuesday, June 10, 2014 10:09 AM
To: Steve Wise; Roland Dreier
Cc: [email protected]
Subject: RE: [PATCH] rdma-cma/iw_cm: export tos field to iwarp providers

Quoted 3 lines
Quoted 1 line

Does this look good for 3.16?

I didn't see where it was used.

It will be. :)

So you want to hold off on this until the iw_cxgb4 changes are made?

Steve.

--
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