Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 926ba19b authored by Steve Wise's avatar Steve Wise Committed by Jason Gunthorpe
Browse files

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: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 9491128f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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),
+2 −1
Original line number Diff line number Diff line
@@ -94,7 +94,8 @@ struct iw_cm_id {
	void (*add_ref)(struct iw_cm_id *);
	void (*rem_ref)(struct iw_cm_id *);
	u8  tos;
	bool mapped;
	bool tos_set:1;
	bool mapped:1;
};

struct iw_cm_conn_param {