aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/core/cma.c2
-rw-r--r--include/rdma/iw_cm.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 06441a43c3aa..248019df5332 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1600,6 +1600,7 @@ static int cma_iw_listen(struct rdma_id_private *id_priv, int backlog)
1600 if (IS_ERR(id)) 1600 if (IS_ERR(id))
1601 return PTR_ERR(id); 1601 return PTR_ERR(id);
1602 1602
1603 id->tos = id_priv->tos;
1603 id_priv->cm_id.iw = id; 1604 id_priv->cm_id.iw = id;
1604 1605
1605 memcpy(&id_priv->cm_id.iw->local_addr, cma_src_addr(id_priv), 1606 memcpy(&id_priv->cm_id.iw->local_addr, cma_src_addr(id_priv),
@@ -2847,6 +2848,7 @@ static int cma_connect_iw(struct rdma_id_private *id_priv,
2847 if (IS_ERR(cm_id)) 2848 if (IS_ERR(cm_id))
2848 return PTR_ERR(cm_id); 2849 return PTR_ERR(cm_id);
2849 2850
2851 cm_id->tos = id_priv->tos;
2850 id_priv->cm_id.iw = cm_id; 2852 id_priv->cm_id.iw = cm_id;
2851 2853
2852 memcpy(&cm_id->local_addr, cma_src_addr(id_priv), 2854 memcpy(&cm_id->local_addr, cma_src_addr(id_priv),
diff --git a/include/rdma/iw_cm.h b/include/rdma/iw_cm.h
index 1017e0bdf8ba..036bd2772662 100644
--- a/include/rdma/iw_cm.h
+++ b/include/rdma/iw_cm.h
@@ -91,6 +91,7 @@ struct iw_cm_id {
91 /* Used by provider to add and remove refs on IW cm_id */ 91 /* Used by provider to add and remove refs on IW cm_id */
92 void (*add_ref)(struct iw_cm_id *); 92 void (*add_ref)(struct iw_cm_id *);
93 void (*rem_ref)(struct iw_cm_id *); 93 void (*rem_ref)(struct iw_cm_id *);
94 u8 tos;
94}; 95};
95 96
96struct iw_cm_conn_param { 97struct iw_cm_conn_param {