diff options
author | Steve Wise <swise@opengridcomputing.com> | 2019-02-01 12:44:32 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-08 16:18:06 -0700 |
commit | 926ba19b3574f6a80823a42484877ed65e91da9c (patch) | |
tree | 62798bac4b4a26598664887b88efc5336ff4eb80 /drivers/infiniband/core/cma.c | |
parent | 9491128f780e5be382a5b22990439d017f6dfc59 (diff) | |
download | linux-926ba19b3574f6a80823a42484877ed65e91da9c.tar.gz linux-926ba19b3574f6a80823a42484877ed65e91da9c.tar.bz2 linux-926ba19b3574f6a80823a42484877ed65e91da9c.zip |
RDMA/iwcm: add tos_set bool to iw_cm struct
This allows drivers to know the tos was actively set by the application.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
-rw-r--r-- | drivers/infiniband/core/cma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index e761ddd09aed..c43512752b8a 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -2414,6 +2414,7 @@ static int cma_iw_listen(struct rdma_id_private *id_priv, int backlog) return PTR_ERR(id); id->tos = id_priv->tos; + id->tos_set = id_priv->tos_set; id_priv->cm_id.iw = id; memcpy(&id_priv->cm_id.iw->local_addr, cma_src_addr(id_priv), @@ -3843,6 +3844,7 @@ static int cma_connect_iw(struct rdma_id_private *id_priv, return PTR_ERR(cm_id); cm_id->tos = id_priv->tos; + cm_id->tos_set = id_priv->tos_set; id_priv->cm_id.iw = cm_id; memcpy(&cm_id->local_addr, cma_src_addr(id_priv), |