* [PATCH v2 rdma-next] i40iw: Change accelerated flag to bool
@ 2017-12-12 22:31 Shiraz Saleem
[not found] ` <20171212223127.892-1-shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Shiraz Saleem @ 2017-12-12 22:31 UTC (permalink / raw)
To: dledford-H+wXaHxf7aLQT0dZR+AlfA, jgg-uk2M96/98Pc
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
e1000-rdma-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Henry Orosco,
Shiraz Saleem
From: Henry Orosco <henry.orosco-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
The accelerated flag only utilizes two values: 0 and 1.
Modify accelerated flag in struct i40iw_cm_node to bool.
Signed-off-by: Henry Orosco <henry.orosco-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Signed-off-by: Shiraz Saleem <shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
v0->v1:
* respun against for-rc to apply cleanly on top
of dependent patch a7c6dfe215a7
("i40iw: Notify user of established connection after QP in RTS")
v1->v2:
* Updated correct patch author
drivers/infiniband/hw/i40iw/i40iw_cm.c | 4 ++--
drivers/infiniband/hw/i40iw/i40iw_cm.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/infiniband/hw/i40iw/i40iw_cm.c b/drivers/infiniband/hw/i40iw/i40iw_cm.c
index 77870f9..0d4c2f4 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_cm.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_cm.c
@@ -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)
@@ -4058,7 +4058,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)
diff --git a/drivers/infiniband/hw/i40iw/i40iw_cm.h b/drivers/infiniband/hw/i40iw/i40iw_cm.h
index 0d5840d..e09b1f5 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_cm.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_cm.h
@@ -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;
--
2.8.3
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <20171212223127.892-1-shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH v2 rdma-next] i40iw: Change accelerated flag to bool [not found] ` <20171212223127.892-1-shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 2017-12-13 6:26 ` Yuval Shaia 2017-12-17 18:31 ` Shiraz Saleem 0 siblings, 1 reply; 3+ messages in thread From: Yuval Shaia @ 2017-12-13 6:26 UTC (permalink / raw) To: Shiraz Saleem Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA, jgg-uk2M96/98Pc, linux-rdma-u79uwXL29TY76Z2rM5mHXA, e1000-rdma-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Henry Orosco On Tue, Dec 12, 2017 at 04:31:27PM -0600, Shiraz Saleem wrote: > From: Henry Orosco <henry.orosco-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > The accelerated flag only utilizes two values: 0 and 1. > Modify accelerated flag in struct i40iw_cm_node to bool. > > Signed-off-by: Henry Orosco <henry.orosco-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Signed-off-by: Shiraz Saleem <shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > --- > v0->v1: > * respun against for-rc to apply cleanly on top > of dependent patch a7c6dfe215a7 > ("i40iw: Notify user of established connection after QP in RTS") > v1->v2: > * Updated correct patch author > > drivers/infiniband/hw/i40iw/i40iw_cm.c | 4 ++-- > drivers/infiniband/hw/i40iw/i40iw_cm.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/infiniband/hw/i40iw/i40iw_cm.c b/drivers/infiniband/hw/i40iw/i40iw_cm.c > index 77870f9..0d4c2f4 100644 > --- a/drivers/infiniband/hw/i40iw/i40iw_cm.c > +++ b/drivers/infiniband/hw/i40iw/i40iw_cm.c > @@ -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) > @@ -4058,7 +4058,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) > diff --git a/drivers/infiniband/hw/i40iw/i40iw_cm.h b/drivers/infiniband/hw/i40iw/i40iw_cm.h > index 0d5840d..e09b1f5 100644 > --- a/drivers/infiniband/hw/i40iw/i40iw_cm.h > +++ b/drivers/infiniband/hw/i40iw/i40iw_cm.h > @@ -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; > -- > 2.8.3 Looks like that the same patch could be applied to nes, can you take it to the same patch-set? > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 rdma-next] i40iw: Change accelerated flag to bool 2017-12-13 6:26 ` Yuval Shaia @ 2017-12-17 18:31 ` Shiraz Saleem 0 siblings, 0 replies; 3+ messages in thread From: Shiraz Saleem @ 2017-12-17 18:31 UTC (permalink / raw) To: Yuval Shaia Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, jgg-uk2M96/98Pc@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, e1000-rdma-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Orosco, Henry On Tue, Dec 12, 2017 at 11:26:22PM -0700, Yuval Shaia wrote: > On Tue, Dec 12, 2017 at 04:31:27PM -0600, Shiraz Saleem wrote: > > From: Henry Orosco <henry.orosco-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > > > The accelerated flag only utilizes two values: 0 and 1. > > Modify accelerated flag in struct i40iw_cm_node to bool. > > > > Signed-off-by: Henry Orosco <henry.orosco-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Signed-off-by: Shiraz Saleem <shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > --- > > v0->v1: > > * respun against for-rc to apply cleanly on top > > of dependent patch a7c6dfe215a7 > > ("i40iw: Notify user of established connection after QP in RTS") > > v1->v2: > > * Updated correct patch author > > > > drivers/infiniband/hw/i40iw/i40iw_cm.c | 4 ++-- > > drivers/infiniband/hw/i40iw/i40iw_cm.h | 2 +- > > 2 files changed, 3 insertions(+), 3 deletions(-) > > > [..] > Looks like that the same patch could be applied to nes, can you take it to > the same patch-set? I sent out a series that takes care of the cleanup in nes. Doug/Jason - Please ignore this one and pick up the series instead. Shiraz -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-17 18:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-12 22:31 [PATCH v2 rdma-next] i40iw: Change accelerated flag to bool Shiraz Saleem
[not found] ` <20171212223127.892-1-shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-12-13 6:26 ` Yuval Shaia
2017-12-17 18:31 ` Shiraz Saleem
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox