IB/mlx5: Fix port counter ID association to QP offset
Subsystems (2)
PATCH 1/1 IB/mlx5: Fix port counter ID association to QP offset
From: Alex Vesker <valex-VPRAkNaXOzVWk0Htik3J/[email protected]>
The q-counter-id is given in modify-QP command associates the QP with the counter. The offset to which the counter ID was set is incorrect, causing IB port counters not to count on QP.
--- drivers/infiniband/hw/mlx5/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/qp.c +1 -1
@@ -2657,7 +2657,7 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,struct mlx5_ib_port *mibport = &dev->port[port_num]; context->qp_counter_set_usr_page |= -cpu_to_be32 (mibport->q_cnt_id <<16 ); +cpu_to_be32 ((u32)(mibport->q_cnt_id) <<24 ); }if (!ibqp->uobject && cur_state ==IB_QPS_RESET && new_state ==IB_QPS_INIT )
Signature · 6 lines
2.1.4 -- 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
A message that is not in the archive (sent off-list or not yet received): 1468416311-25643-1-git-send-email-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Mark Bloch
Tested-byQuoted 41 lines
-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Leon Romanovsky
Sent: Wednesday, July 13, 2016 4:25 PM
To: [email protected]
Cc: [email protected]; Alex Vesker <valex-VPRAkNaXOzVWk0Htik3J/[email protected]>
Subject: [PATCH for-next] IB/mlx5: Fix port counter ID association to QP
offsetFrom: Alex Vesker <valex-VPRAkNaXOzVWk0Htik3J/[email protected]>
The q-counter-id is given in modify-QP command associates the QP with the counter. The offset to which the counter ID was set is incorrect, causing IB port counters not to count on QP.
Fixes 0837e86a7a34 ('IB/mlx5: Add per port counters')Signed-off-by Leon Romanovsky <[email protected]>--- drivers/infiniband/hw/mlx5/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/infiniband/hw/mlx5/qp.c +1
-1@@ -2657,7 +2657,7 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,struct mlx5_ib_port *mibport = &dev->port[port_num]; context->qp_counter_set_usr_page |= -cpu_to_be32 (mibport->q_cnt_id <<16 ); +cpu_to_be32 ((u32)(mibport->q_cnt_id) <<24 ); } if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state ==
IB_QPS_INIT)
--
2.1.4
Quoted 1 line
--
Alex thank for noticing and fixing this.
Mark
--
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
A message that is not in the archive (sent off-list or not yet received): VI1PR05MB1391222EBF9C51484716FC6AD2310-79XLn2atqDP8GeyK7vyn2tqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Doug Ledford
AppliedQuoted 18 lines · Mark Bloch
Quoted 18 lines
-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Leon Romanovsky
Sent: Wednesday, July 13, 2016 4:25 PM
To: [email protected]
Cc: [email protected]; Alex Vesker <valex-VPRAkNaXOzVWk0Htik3J/[email protected]>
Subject: [PATCH for-next] IB/mlx5: Fix port counter ID association
to QP
offsetFrom: Alex Vesker <valex-VPRAkNaXOzVWk0Htik3J/[email protected]>
The q-counter-id is given in modify-QP command associates the QP with the counter. The offset to which the counter ID was set is incorrect, causing IB port counters not to count on QP.
Quoted 7 lines
Quoted 4 lines
Fixes 0837e86a7a34 ('IB/mlx5: Add per port counters')Signed-off-by Leon Romanovsky <[email protected]>Alex thank for noticing and fixing this.
Thanks, applied.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD