Skip to content

Commit

Permalink
RDMA/iw_cm: Export tos field to iwarp providers
Browse files Browse the repository at this point in the history
rdma-cma/iw_cm: Export tos field to iwarp providers

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Steve Wise authored and Doug Ledford committed Jun 2, 2015
1 parent e260818 commit 68cdba0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/core/cma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,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),
Expand Down Expand Up @@ -2847,6 +2848,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),
Expand Down
1 change: 1 addition & 0 deletions include/rdma/iw_cm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 68cdba0

Please sign in to comment.