i40iw: Change accelerated flag to bool
PATCH 1/1 i40iw: Change accelerated flag to bool
The accelerated flag only utilizes two values: 0 and 1. Modify accelerated flag in struct i40iw_cm_node to bool.
---
NOTE: This patch is dependent on the following patch.
"i40iw: Notify user of established connection after QP in RTS"
drivers/infiniband/hw/i40iw/i40iw_cm.c | 4 ++-- drivers/infiniband/hw/i40iw/i40iw_cm.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/infiniband/hw/i40iw/i40iw_cm.c +2 -2
@@ -3691,7 +3691,7 @@ int i40iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) cm_node->qhash_set = false;i40iw_modify_qp (&iwqp->ibqp, &attr,IB_QP_STATE ,NULL ); - cm_node->accelerated =1 ; + cm_node->accelerated = true; status =i40iw_send_cm_event (cm_node, cm_id,IW_CM_EVENT_ESTABLISHED ,0 );if (status)i40iw_debug (dev,I40IW_DEBUG_CM ,"error sending cm event - ESTABLISHED\n" );
@@ -4056,7 +4056,7 @@ static void i40iw_cm_event_connected(struct i40iw_cm_event *event) cm_node->qhash_set = false;i40iw_modify_qp (&iwqp->ibqp, &attr,IB_QP_STATE ,NULL ); - cm_node->accelerated =1 ; + cm_node->accelerated = true; status =i40iw_send_cm_event (cm_node, cm_id,IW_CM_EVENT_CONNECT_REPLY ,0 );if (status)i40iw_debug (dev,I40IW_DEBUG_CM ,"error sending cm event - CONNECT_REPLY\n" );
drivers/infiniband/hw/i40iw/i40iw_cm.h +1 -1
@@ -337,7 +337,7 @@ struct i40iw_cm_node {u16 mpav2_ird_ord;struct iw_cm_id *cm_id;struct list_head list; -int accelerated; +bool accelerated;struct i40iw_cm_listener *listener;int apbvt_set;int accept_pend;
Signature · 6 lines
2.8.3 -- 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
Yuval Shaia
Reviewed-byQuoted 2 lines · Henry Orosco
The accelerated flag only utilizes two values: 0 and 1. Modify accelerated flag in struct
i40iw_cm_nodeto bool.
Can you also take care of the exact same thing in nes driver on the same patch-set?
Besides that
Quoted 54 lines
Signed-off-by Henry Orosco <[email protected]>Signed-off-by Shiraz Saleem <[email protected]>---
NOTE: This patch is dependent on the following patch.
"i40iw: Notify user of established connection after QP in RTS"drivers/infiniband/hw/i40iw/i40iw_cm.c | 4 ++-- drivers/infiniband/hw/i40iw/i40iw_cm.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)drivers/infiniband/hw/i40iw/i40iw_cm.c +2
-2@@ -3691,7 +3691,7 @@ int i40iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) cm_node->qhash_set = false;i40iw_modify_qp (&iwqp->ibqp, &attr,IB_QP_STATE ,NULL ); - cm_node->accelerated =1 ; + cm_node->accelerated = true; status =i40iw_send_cm_event (cm_node, cm_id,IW_CM_EVENT_ESTABLISHED ,0 );if (status)i40iw_debug (dev,I40IW_DEBUG_CM ,"error sending cm event - ESTABLISHED\n" );@@ -4056,7 +4056,7 @@ static void i40iw_cm_event_connected(struct i40iw_cm_event *event) cm_node->qhash_set = false;i40iw_modify_qp (&iwqp->ibqp, &attr,IB_QP_STATE ,NULL ); - cm_node->accelerated =1 ; + cm_node->accelerated = true; status =i40iw_send_cm_event (cm_node, cm_id,IW_CM_EVENT_CONNECT_REPLY ,0 );if (status)i40iw_debug (dev,I40IW_DEBUG_CM ,"error sending cm event - CONNECT_REPLY\n" );drivers/infiniband/hw/i40iw/i40iw_cm.h +1
-1@@ -337,7 +337,7 @@ struct i40iw_cm_node {u16 mpav2_ird_ord;struct iw_cm_id *cm_id;struct list_head list; -int accelerated; +bool accelerated;struct i40iw_cm_listener *listener;int apbvt_set;int accept_pend;Signature · 6 lines
2.8.3 -- 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
--
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